Jump to content
  • Advertisement
Sign in to follow this  
acid2

Projective texturing with HLSL?

This topic is 4974 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!