Cycles faked Volumetric Glass Shader

Description

Here is a handy, easy to reuse cycles shader group for glass with faked volumetric falloff. The reflection colour is also separated so that reflections at the surface of coloured glass will not be tinted as happens with the default cycles glass shader. The falloff uses an exponential function controlled by two parameters: Fade Colour and Fade Distance; the Fade Colour is the maximum tint the glass will ever reach and the Fade Distance is the depth at which the glass will be tinted half way to this colour. This function while not completely real is similar to the one used by POV-Ray which I always found easy to set up to give artistically good results.

Text is included in the blend giving a description of the shader group inputs.

The blend contains various examples of the shade group applied to a simple vase object (Sorry this test object was not made to any sensible real world scale, at 1 blender unit to the metre it's 1.6m high :) ). there is an eight frame animation which just swaps vases making it easier to render the example images; 5000 samples so not quick.

As the volumetric elements are faked it is not meaningful to pass textures into the Solid Colour, Fade Colour, Fade Distance or IOR inputs however textures can be passed to the Surface Colour, Roughness and Reflection Colour inputs to good effect as shown in the last two examples.

Comments (6)

O
oldtimer about 13 years ago

Very useful. I'll look into the blend file to learn more about Blender. Thanks for sharing.

B
borini over 12 years ago

Thanks! It looks good.

A
Armins54 over 11 years ago

Thank You for this one, so nice material!

U
User1234567 about 11 years ago

Nice glass, cool material - thanx!

M
Matrix1 over 7 years ago

it cool

D
digtalzombie about 7 years ago

thank you

Sign in to leave a comment.