mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
missed a 1d convert
This commit is contained in:
parent
14b6822e49
commit
bbe9bc8871
|
|
@ -231,7 +231,7 @@ float4 main( ConvexConnectP IN ) : SV_TARGET
|
|||
// Lookup the cookie sample.d
|
||||
float cosTheta = dot(-surfaceToLight.L, lightDirection);
|
||||
float angle = acos(cosTheta) * ( M_1OVER_PI_F);
|
||||
float iesMask = TORQUE_TEX2D(iesProfile, angle).r;
|
||||
float iesMask = TORQUE_TEX1D(iesProfile, angle).r;
|
||||
// Multiply the light with the iesMask tex.
|
||||
shadow *= iesMask;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue