Monthly Archives: October 2011

Cook Torrance Local Illumination Shading in Unity3D

This is a Unity3D Surface Shader with an implementation of the Cook Torrance Lighting Model. It uses a Beckmann distribution for evaluation of the surface roughness. The series below shows the effect of varying values for the surface roughness (0.1 – 0.9) and different reflectance indices (top row 1.0, bottom row 2.0).