Skip to content

[Reviewed][3D lights] Add a shadow normal bias to spot and point lights (v3.0.0) - #2358

Merged
4ian merged 4 commits into
mainfrom
light3d-shadow-normal-bias
Nov 12, 2026
Merged

4ian merged 4 commits into
mainfrom
light3d-shadow-normal-bias

Conversation

@Bouh

@Bouh Bouh commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description

  • Add a "Shadow normal bias" property to the 3D spot light and the 3D point light, in the "Shadow" group (advanced), with its expression, condition and action.
  • It reduces "shadow acne" on surfaces lit at a grazing angle, without moving shadows away from objects like the shadow bias does.
  • The value is a number of shadow map texels, measured at the farthest lit distance: the cone length for spot lights and the range for point lights (or the shadow camera far plane when there is no limit).
  • It is updated when the cone length, the range, the cone angle, the shadow quality or the shadow camera far plane change.
  • The default value is 1, like how we did on the Directional Light on layers

Before
image

After
image

@Bouh
Bouh requested a review from a team as a code owner November 11, 2026 14:51
@Bouh Bouh changed the title [Reviewed][3D lights] Add a shadow normal bias to spot and point lights (v2.1.0) [Reviewed][3D lights] Add a shadow normal bias to spot and point lights (v3.0.0) Nov 11, 2026
@4ian

4ian commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator
  • Let's bump the minor version only
  • Let's simplify a tad the description, it's not super user friendly I think

@4ian
4ian merged commit 2e02138 into main Nov 12, 2026
5 checks passed
@Bouh
Bouh deleted the light3d-shadow-normal-bias branch November 12, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants