Skip to content

Commit

Permalink
Graphics: Enable RT component always with RT tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Sep 19, 2024
1 parent 82e19ec commit e81af10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mods/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,7 @@ void Graphics::apply_ray_tracing_tweaks() {
static const auto set_RaytracingMode = rt_t->get_method("set_RaytracingMode");
static const auto setBounce = rt_t->get_method("setBounce");
static const auto setSpp = rt_t->get_method("setSpp");
static const auto set_enabled = rt_t->get_method("set_Enabled");

bool any_pt = false;

Expand All @@ -1064,6 +1065,10 @@ void Graphics::apply_ray_tracing_tweaks() {
return;
}

if (set_enabled != nullptr) {
set_enabled->call<void>(context, target, true); // Some games have this disabled.
}

const auto is_pure_pt = is_pure_pt_type(rt_type);

if (set_RaytracingMode != nullptr && rt_type > 0) {
Expand Down

0 comments on commit e81af10

Please sign in to comment.