Note. Unity 5 introduced the Standard Shader which replaces this shader.
Note. Unity 5 introduced the Standard Shader which replaces this shader.
This shader will simulate reflective surfaces such as cars, metal objects etc. It requires an environment Cubemap which will define what exactly is reflected. The main texture’s alpha channel defines the strength of reflection on the object’s surface. Any scene lights will add illumination on top of what is reflected.
Diffuse computes a simple (Lambertian) lighting model. The lighting on the surface decreases as the angle between it and the light decreases. The lighting depends only on this angle, and does not change as the camera moves or rotates around.
Generally, this shader is cheap to render. For more details, please view the Shader Peformance page.
Did you find this page useful? Please give it a rating: