Skip to content

Add procedural grass foliage to Tiled level viewer#145

Merged
stainlu merged 1 commit intomainfrom
foliage-tiled-level
Apr 6, 2026
Merged

Add procedural grass foliage to Tiled level viewer#145
stainlu merged 1 commit intomainfrom
foliage-tiled-level

Conversation

@stainlu
Copy link
Copy Markdown
Owner

@stainlu stainlu commented Apr 6, 2026

Summary

  • Scatter procedural grass blade instances on all SurfaceType::Grass cells in the Tiled/LDtk level viewer
  • Uses the existing scatter_foliage Poisson-disk API for natural-looking distribution, then filters to grass terrain only
  • Each grass blade is a thin, tall cube entity with a green PBR material (roughness 0.85)

Test plan

  • cargo check --workspace
  • cargo test --workspace
  • cargo clippy --workspace -- -D warnings
  • cargo fmt --all -- --check
  • cargo build --release -p euca-game --example tiled_level
  • cargo build -p euca-game --example tiled_level --features metal-native --release

🤖 Generated with Claude Code

Scatter grass blade instances on SurfaceType::Grass cells using
the existing scatter_foliage Poisson-disk API, filtered to only
grass terrain. Each instance is a thin, tall cube with a green
material, spawned as an ECS entity for rendering.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying euca-engine with  Cloudflare Pages  Cloudflare Pages

Latest commit: 97ac3ec
Status: ✅  Deploy successful!
Preview URL: https://674ccb5b.euca-engine.pages.dev
Branch Preview URL: https://foliage-tiled-level.euca-engine.pages.dev

View logs

@stainlu stainlu merged commit bd90f59 into main Apr 6, 2026
6 of 8 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.

1 participant