GLSL Glass Shader (Done!)

These are materials which coredevs did. Unshaded shader with some colors.



You can make your own materials with Normen’s material editor.

@iamcreasy: Its all outlined in the manual. The assets folder is just part of the class path of your application, you can put any data inside these folders that you want, most people will put materials into the Materials folder though :wink:

Color, refraction index, color intensity are added to the glass shader.

I think I will stop here. shader is usable. But it would be better to blur cubemap or use low version of one if you want to use the shader inside your game.



http://dl.dropbox.com/u/26887202/123/glass_color.jpg

3 Likes

I also added chromatic aberration and MatCap specular to the shader. So, I hope these are final features… The code and samples are in the repository: http://code.google.com/p/jme-glsl-shaders/source/checkout

2 Likes