1
0
Fork 0

Fix a problem with cockpit shadows added in previous commit

This commit is contained in:
Frederic Bouvier 2012-04-18 08:37:14 +02:00
parent e4b856805e
commit 9807be4f0d

View file

@ -23,6 +23,7 @@ vec4 DynamicShadow( in vec4 ecPosition, out vec4 tint )
float factor = 0.5; float factor = 0.5;
if (ecPosition.z > -fg_ShadowDistances.x) { if (ecPosition.z > -fg_ShadowDistances.x) {
index = 1; index = 1;
if (fg_ShadowNumber == 1)
factor = 1.0; factor = 1.0;
tint = vec4(0.0,1.0,0.0,1.0); tint = vec4(0.0,1.0,0.0,1.0);
} else if (ecPosition.z > -fg_ShadowDistances.y && fg_ShadowNumber > 1) { } else if (ecPosition.z > -fg_ShadowDistances.y && fg_ShadowNumber > 1) {