mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00
Disabled wibble for fog
This commit is contained in:
parent
7da42d8850
commit
2ee5420cda
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ float DoFogBulb(float3 pos, ShaderFogBulb bulb)
|
|||
}
|
||||
|
||||
float noise = SimplexNoise(pos / 1024.0f);
|
||||
noise *= sin(((Frame % 256) / 256.0f) * (PI2));
|
||||
//noise *= sin(((Frame % 256) / 128.0f) * (PI2));
|
||||
noise = saturate((noise * 0.5 + 0.5) * 0.5 + 0.5); // clamp noise to 0.5 to 1.0
|
||||
return (length(p1 - p0) * bulb.Density / 100.0f * noise / 255.0f);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue