mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Fix shadows on Basic Lighting.
This commit is contained in:
parent
128cca1479
commit
3ad04d050c
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue