Hack hackity hack... I mean fixed water-fog sign-error when cam approaches 0 z when using shaders.

This commit is contained in:
Shyotl
2011-07-10 19:38:43 -05:00
committed by Siana Gearz
parent 47b7fdb5e0
commit c320429f41
2 changed files with 6 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ vec4 applyWaterFog(vec4 color)
float depth = length(getPositionEye() - int_v);
//get "thickness" of water
float l = max(depth, 0.1);
float l = min(max(depth, 0.1),50.0);
float kd = waterFogDensity;
float ks = waterFogKS;