Light Accumulation

Light Accumulation node.

EEVEE Only

The Light Accumulation node allows authoring how the Material reacts to Lights. This can, for example, be used for toon and stylized shading, but also for complex physical effects like iridescence.

The Light inputs are evaluated once for each light affecting the surface point, and scaled by their corresponding light influence. Each light contribution is calculated as:

(diffuse_light * diffuse_color * diffuse_influence) +
(glossy_light * glossy_color * glossy_influence) +
(transmission_light * transmission_color * transmission_influence)

The final result is the sum of the calculated contributions from all the lights. The accumulated result of each input is also made available in its corresponding Compositor Pass.

Note

Material Lighting nodes (Light Evaluation, Light Info, Shadow Raycast, Attribute (Light mode), and Vector Transform (Light space)) must be part of the Light Accumulation input tree, so they are evaluated once for each light.

Correct Light Accumulation setup.

Correct setup.

Light Accumulation setup error.

Setup error.

Inputs

Diffuse Light

Color of the diffuse light contribution.

Diffuse Color

Color tint to scale the diffuse light contribution (albedo / base color).

Glossy Light

Color of the glossy (specular) light contribution.

Glossy Color

Color tint to scale the glossy light contribution (specular tint).

Transmission Light

Color of the transmission light contribution.

Transmission Color

Color tint to scale the transmission light contribution (transmission tint).

Properties

This node has no properties.

Outputs

Shader

The accumulated result of all the lights.

Examples

Diffuse Halftone Toon Shader.

Diffuse Halftone Toon Shader.

Diffuse Halftone Toon Shader Nodes.

Diffuse Halftone Toon Shader setup.