ppl attenuation on 3 axis
Attenuation doesn`t work if brightness is different on one of the 3 axis.
I use
texCoords.x = lightVector.x/(light->brightness.x * 2) + 0.5f;
texCoords.y = lightVector.y/(light->brightness.y * 2) + 0.5f;
texCoords.z = lightVector.z/(light->brightness.z * 2) + 0.5f;
where lightVector is the tangent space vector of the light
( non tangent light vec = ligh.origin - vertex )
Now if x isn`t equal to y and z then the attenuation is not correct, what is wrong ?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement