Skip to content

Commit e81af10

Browse files
committedSep 19, 2024·
Graphics: Enable RT component always with RT tweaks
1 parent 82e19ec commit e81af10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/mods/Graphics.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,7 @@ void Graphics::apply_ray_tracing_tweaks() {
10491049
static const auto set_RaytracingMode = rt_t->get_method("set_RaytracingMode");
10501050
static const auto setBounce = rt_t->get_method("setBounce");
10511051
static const auto setSpp = rt_t->get_method("setSpp");
1052+
static const auto set_enabled = rt_t->get_method("set_Enabled");
10521053

10531054
bool any_pt = false;
10541055

@@ -1064,6 +1065,10 @@ void Graphics::apply_ray_tracing_tweaks() {
10641065
return;
10651066
}
10661067

1068+
if (set_enabled != nullptr) {
1069+
set_enabled->call<void>(context, target, true); // Some games have this disabled.
1070+
}
1071+
10671072
const auto is_pure_pt = is_pure_pt_type(rt_type);
10681073

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

0 commit comments

Comments
 (0)
Please sign in to comment.