Skip to content

feat(isometric): tree presets + stable shadow cascades#7824

Merged
h0lybyte merged 1 commit intodevfrom
trunk/isometric-trees-1773036110
Mar 9, 2026
Merged

feat(isometric): tree presets + stable shadow cascades#7824
h0lybyte merged 1 commit intodevfrom
trunk/isometric-trees-1773036110

Conversation

@h0lybyte
Copy link
Member

@h0lybyte h0lybyte commented Mar 9, 2026

Summary

  • 5 tree shape presets (conifer, tall pine, bushy, oak, round) with layered canopy, size variation, dark-to-light gradient, and offset blobs for deciduous types
  • Shadow pixel-swimming fixed via texel-snapped cascade projections — a PostUpdate system snaps the cascade clip_from_world matrix to shadow-texel boundaries after Bevy computes cascades
  • Single cascade at 4096 resolution, simplified 2-shape tree colliders, forward-axis camera snapping

Test plan

  • Verify trees render with visual variety (5 preset shapes, size variation)
  • Walk around and confirm shadows are stable (no pixel swimming/crawl)
  • Confirm tree hover selection still works
  • WASM build compiles and runs in Tauri WKWebView

Five tree shape presets (conifer, tall pine, bushy, oak, round) with
layered canopy, dark-to-light gradient, size variation, and offset
blobs for deciduous types.  Simplified to 2-shape colliders (trunk +
canopy envelope) to avoid Rapier contact jitter.

Shadow pixel-swimming fixed by snapping the cascade clip_from_world
matrix to shadow-texel boundaries in a PostUpdate system that runs
after Bevy computes cascades.  Single cascade at 4096 resolution
keeps shadows stable for day/night without per-frame drift.

Camera forward-axis snapping added to further stabilise the shadow
frustum alignment.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit e6d06c2 into dev Mar 9, 2026
4 checks passed
@h0lybyte h0lybyte deleted the trunk/isometric-trees-1773036110 branch March 9, 2026 07:42
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.

1 participant