Jump to content
  • Advertisement

Archived

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

Ulfie

Total reflection

This topic is 5311 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
Advertisement
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
Guest Anonymous Poster
Thank you for pointing out the name, now I know where to look!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!