Sign in to follow this  

heat haze

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

This topic is 4839 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this