Skip to content

Automatic shadow biasing #16075

@JMS55

Description

@JMS55

What problem does this solve or what need does it fill?

Shadow acne is an artifact that occurs when sampling the shadow map. The shadow map surface you intend to sample was discretized into the shadow map, which might not perfectly match the sample position.

The solution is to bias the sampling position away from the surface a little.

What solution would you like?

An automatic algorithm to compute a good shadowing bias.

State of the art is "Oriented Depth Bias" from FFXVI http://www.jp.square-enix.com/tech/library/pdf/2023_FFXVIShadowTechPaper.pdf#page=28.

What alternative(s) have you considered?

A constant shadow bias is already supported by our lighting system. It's hard to find a good value for this that doesn't result in objects appearing to disconnect from their shadows.

Additional context

An older method called "Receiver Plane Depth Bias" was tried in #10188.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-FeatureA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions