summaryrefslogtreecommitdiffstats
path: root/math.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-01-19 13:25:52 -0800
committeryum <yum.food.vr@gmail.com>2025-01-19 13:25:52 -0800
commitffc4bb2c80582cd81aa801bff9c274d833076ae6 (patch)
treef733af8b33b4c980386d2a3f2d533b8ce8611403 /math.cginc
parentbee103e89fc83030bfc0251db5a78bb153042e1f (diff)
Add terrain gimmick (ds2_11) and analytic fog (fog01)
Diffstat (limited to 'math.cginc')
-rw-r--r--math.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.cginc b/math.cginc
index 507ca74..6b39bdb 100644
--- a/math.cginc
+++ b/math.cginc
@@ -279,7 +279,7 @@ float3x3 invert(float3x3 m)
uint gcd(uint a, uint b)
{
uint tmp = a * b;
- #define GCD_MAX_ITER 10
+ #define GCD_MAX_ITER 8
for (uint i = 0; i < GCD_MAX_ITER; i++) {
tmp = b;
b = a % b;