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/math_util_2.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/math_util_2.c')
| -rw-r--r-- | src/math_util_2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math_util_2.c b/src/math_util_2.c index 2a6a681ba..3e0346b80 100644 --- a/src/math_util_2.c +++ b/src/math_util_2.c @@ -456,6 +456,10 @@ bool is_particle_on_screen(Vec3f arg0, Camera* arg1, u16 arg2) { u16 temp_t9; s32 ret; + if (CVarGetInteger("gNoCulling", 0) == 1) { + return true; + } + ret = false; temp_t9 = (get_angle_between_xy(arg1->pos[0], arg0[0], arg1->pos[2], arg0[2]) + (arg2 / 2)) - arg1->rot[1]; if ((temp_t9 >= 0) && (arg2 >= temp_t9)) { |
