feat(shadow): add alpha-tested material shadow casters #947
No reviewers
Labels
No labels
Context: Bug
Context: Enhancements
Platform: Android
Platform: Linux
Platform: Web
Platform: Windows
Platform: iOS
Platform: macOS
Release
Target: CI
Target: CLI
Target: Dependency
Target: Engine
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SakulFlee/Orbital!947
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/renderer-shadows"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Phase 5a: shadow casters now respect PBR alpha masking, and shadow rendering no longer creates views every frame.
MaterialShaderDescriptorcan provide a dedicated shadow source plus shadow vertex/fragment entrypoints.pbr_shadow.wgsl; opaque materials skip the texture fetch because their cutoff is zero.TextureViews are cached and only recreated when the shadow textures grow.Verification
cargo fmt --all -- --checkcargo clippyfor the touched crates and all three example templates with--all-targets -D warningscargo testfororbital_material_shader,orbital_shader_pbr,orbital_shadow,orbital_resourcesRefs #781, #872.
Smart test results
Result: PASS
Scope: full workspace
Reason: workspace-level change: Cargo.lock
Elapsed: 6m 40s
Workflow run
Overall: 451 tests, 441 passed, 0 failed, 10 skipped
Nextest: 440 tests, 440 passed, 0 failed, 0 skipped
Doctests: 11 tests, 1 passed, 0 failed, 10 skipped
Outcome charts are split between nextest and doctests. The timing chart covers nextest only.