missed a 1d convert

This commit is contained in:
AzaezelX 2024-02-22 23:47:57 -06:00
parent 14b6822e49
commit bbe9bc8871

View file

@ -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