Skip to content

Add a shadow normal bias to the directional lights of the 3D starters - #1120

Merged
4ian merged 1 commit into
mainfrom
claude/shadow-normal-bias-starters
Nov 10, 2026
Merged

4ian merged 1 commit into
mainfrom
claude/shadow-normal-bias-starters

Conversation

@4ian

@4ian 4ian commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Every shadow-casting directional light of the starting-* examples (41 lights, 32 starters) gets shadowNormalBias: 1, the value new lights get in GDevelop. It removes the shadow acne (rings on curved objects, stripes on roofs and walls facing the sun) without detaching shadows. The existing shadow bias is kept: setting it to 0 changes nothing visible.

  • 0.5 leaves faint acne. 1 removes it; the only side effect found is a slightly lighter shadow under the car's rear bumper in the car racing starter, visible only when zoomed.
  • Gameplay tests of the changed starters pass (72 tests, GDevelop 5.6.287).

Before/after screenshots: https://claude.ai/artifact/SRPsLvc6K1JVQ2tryLNXVu


Generated by Claude Code

Every shadow-casting directional light of the starting-* examples gets a
shadow normal bias of 1 texel, like the lights of new projects. It removes
the shadow acne (rings on curved objects, stripes on roofs and walls facing
the sun) without detaching shadows from objects. The existing shadow bias
is kept: setting it to 0 changes nothing visible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GFZna18e8tggLK2kBPwN7V
@github-actions

Copy link
Copy Markdown
Contributor

Preview the game(s) changed or added in this Pull Request


This is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt.

@4ian
4ian merged commit 7db4a0f into main Nov 10, 2026
7 checks passed
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