Projective texturing with HLSL?

Started by
2 comments, last by EvilDecl81 19 years, 5 months ago
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!
Ollie"It is better to ask some of the questions than to know all the answers." ~ James Thurber[ mdxinfo | An iridescent tentacle | Game design patterns ]
Advertisement
That's why there is documentation.

Try searching for "HLSL" for example. Or perhaps "HLSL sample code".
enum Bool { True, False, FileNotFound };
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.
Ollie"It is better to ask some of the questions than to know all the answers." ~ James Thurber[ mdxinfo | An iridescent tentacle | Game design patterns ]
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.
EvilDecl81

This topic is closed to new replies.

Advertisement