Skip to content

Add a shadow normal bias to the directional lights of the other 3D examples - #1121

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

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

Conversation

@4ian

@4ian 4ian commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Same change as #1120, for the examples that are not starters: every shadow-casting directional light (23 lights in 14 examples, including 2 inside a custom object of scrollbar) gets shadowNormalBias: 1. It removes the shadow acne, which was severe in some of them (3D platformer, babyfoot, lane runner, wipeout). 3d-air-hockey already had it. With both PRs, every shadow-casting directional light of the repository has a normal bias.

  • Rendering screenshots of the 3D island (acne on the trees gone) and the light playground (0.23% of pixels) are updated.
  • Gameplay tests pass (the 2 changed examples that have tests, 10 tests, GDevelop 5.6.287). The others were checked with before/after screenshots.

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


Generated by Claude Code

…amples

Like the 3D starters: every shadow-casting directional light of the other
examples (23 lights in 14 examples, including the ones of a custom object)
gets a shadow normal bias of 1 texel, which removes the shadow acne. The
air hockey example already had one.

The rendering screenshots of the 3D island and the light playground are
updated: the acne stripes on the island trees are gone, and the light
playground barely changes.

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 52c8f3c 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