Self-Illuminated Parallax Diffuse
Reference Manual > Built-in Shader Guide > Self-Illuminated Shader Family > Self-Illuminated Parallax Diffuse

Self-Illuminated Parallax Diffuse

One consideration for this shader is that the alpha channel the normal map is used for both Illumination map and the height for the Parallax depth.

Self-Illuminated Properties

This shader allows you to define bright and dark parts of the object. The alpha channel of a secondary texture will define areas of the object that "emit" light by themselves, even when no light is shining on it. In the alpha channel, black is zero light, and white is full light emitted by the object. Any scene lights will add illumination on top of the shader's illumination. So even if your object does not emit any light by itself, it will still be lit by lights in your scene.

This shader is similar to a Lightmapped shader, but there are slight differences. In this shader, the illumination map uses the same UV mapping as the main texture whereas the UVs can differ in a Lightmapped shader. Lightmapped shaders can also "emit" colored light, while Self-Illuminated emits monochrome light. This shader is also a bit more compatible with older graphics cards than a Lightmapped shader.

Parallax Bumped Properties

Parallax Bumped is the same as regular Bumped, but with a better simulation of "depth". The extra depth effect is achieved through the use of a Height Map. The Height Map is contained in the alpha channel of the Bumpmap. In the alpha, black is zero depth and white is full depth. This is most often used in bricks/stones to better display the cracks between them.

The Parallax mapping technique is pretty simple, so it can have artifacts and unusual effects. Specifically, very steep height transitions in the Height Map should be avoided. Adjusting the Height value in the Inspector can also cause the object to become distorted in an odd, unrealistic way. For this reason, it is recommended that you use gradual Height Map transitions or keep the Height slider toward the shallow end.

Diffuse Properties

This shader is a Pixel-Lit shader, which is more expensive than Vertex-Lit. Pixel lighting is expensive mostly because each object has to be drawn multiple times for each pixel light that shines on it. Vertex lights don't affect the shader in this way. Pixel lights support cookies, bumpmapping, and shadows while vertex lights do not. Pixel lights are also much less sensitive to tesselation of the models - if you have a cube using this shader, you can put point light very close to its surface and it will have nice round highlight. This effect cannot be achieved with Vertex lighting.

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 the this angle, and does not change as the camera moves or rotates around.


Generally, this shader is on the more expensive rendering side. For more details, please view the Shader Peformance page.