Fast Dispersion Glass

  • March 15, 2018
  • Blender 2.7x
  • Render: Cycles
  • Creator: Moony
  • License: CC-0
You must be logged in to download.


This is a faster dispersion glass shader.

Instead of using three refraction/glass shaders, one each covering R, G and B - it uses a very small scale brick texture to set wavelength dependent colour/IOR at the sub pixel level.

Because we are only using one refraction/glass shader - this results in much better performance - and possibly much better accuracy too since we are setting IORs based on the actual colour, rather than trying to interpolate between pure R, G and B values.

The second image is a comparison with a traditional additive R, G, B glass/refraction dispersion shader. This shader renders in about half the time of a dispersion shader adding R, G and B refraction/glass shaders (in the shown examples - 32 seconds vs 56 seconds)


  • IAMCUBEMAN profile picture

    Would you be okay if I were to include your implementation in my Better Glass Shader?

    Written March 26, 2018
  • Moony profile picture

    Sure - no problem.

    Written March 26, 2018
  • IAMCUBEMAN profile picture

    Awesome, Thanks!

    Written March 27, 2018