Page MenuHome

EEVEE: Add support for GGX Multi-scatter

Authored by Clément Foucault (fclem) on Sep 16 2020, 6:55 PM.



Based on

This is a simple trick that does *not* have a huge performance impact but
does work pretty well. It just modifies the Fresnel term to account for
the multibounce energy loss (coloration).

However this makes the shader variations count double. To avoid this we
use a uniform and pass the multiscatter use flag inside the sign of f90.
This is a bit hacky but avoids many code duplication.

This uses the simplification proposed by McAuley in
A Journey Through Implementing Multiscattering BRDFs and Area Lights

This does not handle area light differently than the IBL case but that's
already an issue in current implementation.

This is related to T68460.

Diff Detail

rB Blender

Event Timeline

Clément Foucault (fclem) requested review of this revision.Sep 16 2020, 6:55 PM
Clément Foucault (fclem) created this revision.

This is low priority but would be a nice addition to have at least one new feature for 2.91 for EEVEE.

Brecht Van Lommel (brecht) added inline comments.

The comment should explain what this is doing.

This revision is now accepted and ready to land.Sep 18 2020, 12:49 PM