SpecularLighting | This node provides a per-pixel lighting that gives better shading result than the default lighting which is per-vertex. |
The SpecularLighting shader is an improved version of the DirectX Fixed-Function lighting by a directional light.
Note that this shader only works with one single Directional Light node! Other light sources are not supported.
The right sphere uses the Fixed-Function lighting whereas the left sphere was lightened with the SpecularLighting shader. The difference is most visible in areas with specular highlight. The specular highlight of the left sphere is more uniform compared to the right one. The Fixed-Function lighting uses a per-vertex lighting (and interpolates the area between vertices) whereas the shader applies a per-pixel lighting that renders much smoother transitions.