Projective texturing with HLSL?
Hi,
I'm quite new to HLSL. But how does this work? I want to be able to project a texture onto a mesh, generally. I see that HLSL has tex2Dproj etc - but don't totally udnerstnad.
Someone please enlighten me!
That's why there is documentation.
Try searching for "HLSL" for example. Or perhaps "HLSL sample code".
Try searching for "HLSL" for example. Or perhaps "HLSL sample code".
No, I understand HLSL - what I don't understand is that actual use of tex2Dproj, however - yea i am searching MSDN for some help on that.
Quote:Original post by acid2
Hi,
I'm quite new to HLSL. But how does this work? I want to be able to project a texture onto a mesh, generally. I see that HLSL has tex2Dproj etc - but don't totally udnerstnad.
Someone please enlighten me!
tex2Dproj takes a 4 vector and divides the coordinates by the w component. The third component is ignored for 2D textures.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement