1
0
Fork 0
This commit is contained in:
Frederic Bouvier 2012-02-11 10:47:39 +01:00
parent e5bb4d520a
commit 6261badedb

View file

@ -244,7 +244,7 @@ void main (void)
finalColor.rgb = fog_Func(finalColor.rgb, fogType);
gl_FragColor = finalColor;
if (dot(normal,-V) > 0.017) {
if (dot(normal,-V) > 0.1) {
vec4 iproj = gl_ProjectionMatrix * p;
iproj /= iproj.w;
gl_FragDepth = (iproj.z+1.0)/2.0;