Jump to content
  • Advertisement
Sign in to follow this  

heat haze

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

When doing a heat haze shader effect (doom 3 like) in the fragment shader part you need to get the fragment coordinate and convert it to [0,1] range. How exactly is this done? It's just a variable that gets multiplied by the fragment coord but I don't know what goes into that variable. Also after this screen coord has been converted to [0,1] range and it has been shifted by a deform magnitude it needs to be adjusted for non power of two coords. This is again another multiply but I'm not sure what value to use. I understand the whole process of doing this effect but I'm stuck on how to get the two values I mentioned above to get it to work correctly. Thanks!

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!