SL-18566 Fix for legacy transparency being opaque under water.

meow-7.2.2
Dave Parks 2022-11-11 15:39:06 -06:00
parent 8a19c8e073
commit 344c5196b4
1 changed files with 1 additions and 3 deletions

View File

@ -68,7 +68,6 @@ vec4 applyWaterFogView(vec3 pos, vec4 color)
float D = pow(0.98, l*kd);
color.rgb = color.rgb * D + kc.rgb * L;
color.a = kc.a + color.a;
return color;
}
@ -114,7 +113,6 @@ vec4 applyWaterFogViewLinear(vec3 pos, vec4 color)
float D = pow(0.98, l * kd);
color.rgb = color.rgb * D + kc.rgb * L;
color.a = kc.a + color.a;
return color;
}
@ -122,6 +120,6 @@ vec4 applyWaterFogViewLinear(vec3 pos, vec4 color)
vec4 applyWaterFog(vec4 color)
{
//normalize view vector
return applyWaterFogView(getPositionEye(), color);
return applyWaterFogViewLinear(getPositionEye(), color);
}