mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
missed a 1d convert
This commit is contained in:
parent
14b6822e49
commit
bbe9bc8871
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ float4 main( ConvexConnectP IN ) : SV_TARGET
|
||||||
// Lookup the cookie sample.d
|
// Lookup the cookie sample.d
|
||||||
float cosTheta = dot(-surfaceToLight.L, lightDirection);
|
float cosTheta = dot(-surfaceToLight.L, lightDirection);
|
||||||
float angle = acos(cosTheta) * ( M_1OVER_PI_F);
|
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.
|
// Multiply the light with the iesMask tex.
|
||||||
shadow *= iesMask;
|
shadow *= iesMask;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue