소스 검색

Fix shadows on Basic Lighting.

LuisAntonRebollo 10 년 전
부모
커밋
3ad04d050c
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Templates/Empty/game/shaders/common/gl/projectedShadowV.glsl
  2. 1 1
      Templates/Full/game/shaders/common/gl/projectedShadowV.glsl

+ 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 );