Explorar o código

Fix shadows on Basic Lighting.

LuisAntonRebollo %!s(int64=10) %!d(string=hai) anos
pai
achega
3ad04d050c

+ 1 - 1
Templates/Empty/game/shaders/common/gl/projectedShadowV.glsl

@@ -40,7 +40,7 @@ void main()
    gl_Position = modelview * vec4(vPosition.xyz, 1.0);
    
    color = vColor;
-   texCoord = vTexCoord1.st;
+   texCoord = vTexCoord0.st;
    
    float fromCasterDist = length(vPosition.xyz - shadowCasterPosition) - shadowLength;
    fade = 1.0 - clamp( fromCasterDist / shadowLength , 0.0, 1.0 );

+ 1 - 1
Templates/Full/game/shaders/common/gl/projectedShadowV.glsl

@@ -40,7 +40,7 @@ void main()
    gl_Position = modelview * vec4(vPosition.xyz, 1.0);
    
    color = vColor;
-   texCoord = vTexCoord1.st;
+   texCoord = vTexCoord0.st;
    
    float fromCasterDist = length(vPosition.xyz - shadowCasterPosition) - shadowLength;
    fade = 1.0 - clamp( fromCasterDist / shadowLength , 0.0, 1.0 );