Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

GLSL Shaders (Reflection and Refraction)

Loading...

Sign in or sign up now!
14,823
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 8, 2008

GLSL shaders. Have a look. Pretty spiffy! Realtime, refraction a bit cheating, but overall a good start for a week or two ;)

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (GeometrianGL)

  • Yes, this is done using a cubemap. This is an old video; I actually lost the code that made this, then recreated it. Yeah. It's been a while. I think it's dynamic here, although because there's nothing else, it might as well have been static. My new OpenGL library supports both.

  • Yes and no. When you look through a transparent object, you'll get refraction (what you see here). If you look at a curved mirror, you'll get distortions, but that's still reflection. Anytime light is bent (not bounces) that's refraction. In games, reflection and refraction can often take a lot of computational bandwidth. Thus, most lighting effects in games are shadows at most, if anything at all. Maybe I don't understand your question though.

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • Reminds me of the tech demo NVIDIA released for the GeForce 2.

  • How are you doing the reflection? In my experience of Game Shaders, most of them are done with a cube map, if you are using that method, are you using a static cube map, or is the cube map changing images each frame? Or are you using another method all together? Good vid!

  • May I ask. Most space distortion in video games are by refraction right?

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more