Jump to content
  • Advertisement
Sign in to follow this  
Valor Knight

Pixel Shader question

This topic is 4584 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

Is there a way to plaster a texture onto a surface (in my case, a dome) with no uv coordinates? I would like to add a sun to my skydome, and have a vector to the place the sun is supposed to go, and a color (the texture is white w/ alpha .dds), it just needs to be plastered onto the wall somehow. How would I do this efficiently without having to find and deal with the uv's (I can use shader 3.0) ?

Share this post


Link to post
Share on other sites
Advertisement
I would just render a billboarded quad at the sun's position with the sun's texture. Try and look into that and see what the results are?

You could always use perspective texturing to render the sun on the dome, but that's overkill (without a doubt) and wont even give desirable results I think.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!