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 reflected light varies from different viewing angles, then the specular layer will handle those reflections.

In most shaders, specularity represents the reflections of light sources in the scene, and reflections represent the reflections of objects in the scene. In fact, … Read the rest

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 consist of light from punctual light sources, image sources, and/or reflections of other objects. In general, “the vast majority of visible objects are seen primarily by diffuse reflection.”

The most common diffuse shader model by far is the Lambert … Read the rest