Transforming texture coordinates to clipspace?
In a fragment program I would like to lookup a texture which I will use for the fragment color.
In the vertex program I receive the vertex position and the texture coordinates. I transform the position to clip-space:
OUT.position = mul(ModelViewProj, IN.position);
But should the texture coordinates also be transformed or can they just be transferred directly to the fragment program?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement