summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-10-13 16:56:44 -0700
committeryum <yum.food.vr@gmail.com>2024-10-13 16:56:44 -0700
commit1ff4045914b603c16f3e1b3339e1080b152825fb (patch)
tree51997a39266e11c7350ed9ddf4413db31f763c7b
parent6206a5b8a96dc5eb3f5b12a3c4ccf26844421193 (diff)
Fix fog time scaling
-rw-r--r--fog.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/fog.cginc b/fog.cginc
index 1e96b20..8f81e09 100644
--- a/fog.cginc
+++ b/fog.cginc
@@ -35,7 +35,7 @@ float perlin_noise_3d_tex(float3 p)
}
float map(float3 p, float lod) {
- float3 t = _Time[1] * 0.5;
+ float3 t = _Time[1] * .5 * FOG_PERLIN_NOISE_SCALE;
#define RADIUS_TRANS_WIDTH 100
#define RADIUS_TRANS_WIDTH_RCP (1.0 / RADIUS_TRANS_WIDTH)
// Try to create a smooth transition without doing any length() or other