Skip to content

Commit

Permalink
[rtx] fix culling distance of cargoship wall lights
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxor4d committed Jun 2, 2024
1 parent 80f0a15 commit cf3fd59
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/modules/rtx/rtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,19 @@ namespace components
{
rtx_map_settings::get()->set_settings_for_loaded_map();
rtx::set_dvars_defaults_on_mapload();

// increase culling distances for certain objects
if (game::gfx_world)
{
for (auto m = 0u; m < game::gfx_world->dpvs.smodelCount; m++)
{
auto y = game::gfx_world->dpvs.smodelInsts[m];
if (std::string_view(game::gfx_world->dpvs.smodelDrawInsts[m].model->name)._Equal("cs_cargoship_wall_light_on"))
{
game::gfx_world->dpvs.smodelDrawInsts[m].cullDist = 10000.0f;
}
}
}
}

// > fixed_function::free_fixed_function_buffers_stub
Expand Down

0 comments on commit cf3fd59

Please sign in to comment.