Fix a problem with cockpit shadows added in previous commit
This commit is contained in:
parent
e4b856805e
commit
9807be4f0d
1 changed files with 4 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue