Glass effect (Ogre)

Started by
0 comments, last by Danny02 12 years, 10 months ago
[size="4"]I want to make glass posteffect like in ogre demo.
Unfortunately I did find nothing. Maybe there are some papers or shaders.
Also, it is interensing to know the principle of this effect.

[attachment=2451:GlassEffect.jpg]
Advertisement
in this screen u see a simple refraction shader, it is really just simple phisics.
http://en.wikipedia.org/wiki/Refraction

What u need:
  • surface normal(in,out)
  • light direction
  • thinkness of material

u probably don't need a perfect phisic simulation so u can cut some corners.

Just google for refraction shaders(like in water rendering)

This topic is closed to new replies.

Advertisement