diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2024-09-11 00:20:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-10 16:20:55 -0600 |
| commit | b36b9e318095e0ae5fc720319a55418d9aa5a4c3 (patch) | |
| tree | 1f0b6e5784ba248722a86c464cf32dd9f4a1518e /src/code_80005FD0.c | |
| parent | 47e95c0e182ed21486648d88e2ce52aa05d2fe7c (diff) | |
[enhancement] Disable Culling (#58)
* less intrusif possible way to disable culling
* forget cloud and star
* some change and add gFarFrustrum
* reduce range of gFarFrustrum
* minor rename of a CVar
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/code_80005FD0.c')
| -rw-r--r-- | src/code_80005FD0.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/code_80005FD0.c b/src/code_80005FD0.c index 0053a4b16..ffacdf4e4 100644 --- a/src/code_80005FD0.c +++ b/src/code_80005FD0.c @@ -667,6 +667,10 @@ s32 set_vehicle_render_distance_flags(Vec3f vehiclePos, f32 renderDistance, s32 } } } + if (CVarGetInteger("gNoCulling", 0) == 1) { + flag |= (RENDER_VEHICLE << PLAYER_ONE) | (RENDER_VEHICLE << PLAYER_TWO) | (RENDER_VEHICLE << PLAYER_THREE) | + (RENDER_VEHICLE << PLAYER_FOUR); + } return flag; } |
