Archived

This topic is now archived and is closed to further replies.

Total reflection

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

You know a transparent object like a lake or a pane of glass, when you look at it from big enough an angle from the surface''s normal, light is totally reflected. How would you guys implement this in OpenGL?

Share this post


Link to post
Share on other sites
That''s called the Fresnel effect.

Generally speaking, the Fresnel term gives the reflection to refraction ratio, depending on the view angle and the surface normal (simplified). Usually, vertex or pixel shaders are used to compute that coefficient. Search the ATI or nvidia developer sites, they both have examples covering this.

Share this post


Link to post
Share on other sites