Glass Shader

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,552
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 9, 2006

Just a little glass shader I wrote in HLSL for my game engine. The idea was to have some cheap glass that I can use liberally without having to render cubemaps on them. They're only going to be seen at a distance, so rendering to a cubemap for each area of glass was never going to be practical. Instead I wrote this, which uses a normal map to create the smoked glass effect, and then distorts the texture coordinates of the flat reflection texture to simulate a ray cast from the surface normal to the camera. It's cheap fast and I think it looks pretty good considering you can plaster it all over the scene without any slowdowns. It's using a generic texture at the moment, as it has no environment to go into.

Category:

Entertainment

Tags:

License:

Standard YouTube License

  • likes, 7 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • looks very nice :)

    Perhaps you could put it with a scene so the actual transparency of the glass can be seen :)

    Good stuff

Loading...
Alert icon
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