Master Glass Shader for all purpose

Description

Recently I’ve been obsessed with creating a perfect Master Glass Shader that will suit all situations, regardless of using separate technique for specific situation. Early on I’d just slap a default glass material on every kinds of glass and call it day. Then gradually I’ve been noticing unsatisfactory results in my final renders. For ex: I’ve a scene with old tungsten bulb and using default glass was not giving me that realistic look. Similarly, when I used glass panels for windows, there wasn’t enough light coming into room. The solution was a technique with Light path that ignores shadow ray and reflection into a math mode and setting the mode to maximum.

For few moments I thought, that was it. Then while working on one of the client’s project there was a solid of glass sculpture with light inside it and both of the techniques were inefficient. And that’s is what made me come up with this fairly simple node setup to create that Master Glass Shader that fits in all situations without having to switch between materials and fiddle with values.

So, what did I have to understand when it comes to glass and it’s physical properties. All the glass seems to be very clear and without flaws. No glass is perfect. They will always have some impurities, distortions, surface imperfections, angular reflections, light refractions and absorptions.

Let me know what you created with in the comments.

Comments (6)

T
Ted3d about 5 years ago

This a great shader, you did a very good job congrats! thank you for sharing stay safe

C
cronzi about 5 years ago

Thanks my friend. I have updated the shader since last one, it will be using volume absorption too for realistic coloring when viewed from side. I will release it soon. Appreciate a lot.

M
mx_1253277 about 5 years ago

excellent :) Thanks alot

G
gauwrong about 5 years ago

Thank You !

C
CS_1460847 almost 5 years ago

感谢您的付出!

A
assad12 almost 4 years ago

thanks you for sharing

Sign in to leave a comment.