The Specular Layer

The Specular Layer

The specular layer represents the second layer of my uber-shader where the reflected light varies between rough and sharp. Reflected light can consist of light from punctual light sources, image sources, and/or reflections of other objects. In general, if the…

The Diffuse Layer

The Diffuse Layer

The diffuse layer represents the bottom-most layer of my uber-shader where light is reflected almost uniformly across all directions, usually because the surface is extremely rough and light does not penetrate the surface to any noticeable effect. Reflected light can…