Remove an extraneous normalize() from the water fragment shader - the last thing we did to this vector was normalize it anyway.

meow-7.2.2
Tofu Linden 2010-03-07 09:41:47 +00:00
parent 181b0a4ede
commit a6c5980978
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ void main()
//color.a = spec * sunAngle2;
//wavef.z *= 0.1f;
wavef = normalize(wavef);
//wavef = normalize(wavef);
wavef = (norm_mat*vec4(wavef, 1.0)).xyz;
gl_FragData[0] = vec4(color.rgb, 0.5);