feat(renderer): add froxel volumetric lighting and height fog #956
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!956
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/renderer-volumetrics"
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
Adds opt-in froxel volumetric lighting and height fog to the 3D renderer.
VolumetricSettingsECS resource with density, scattering, extinction, Henyey-Greenstein anisotropy, height fog, ambient color, maximum distance, and Low/Medium/High/Custom quality tiers. Volumetrics remain disabled unless the resource is present andenabledis true.rgba16floatfroxel grid (4x4x4workgroups).volumetric-injectandvolumetric-compositepasses after transparency and before tonemap. When volumetrics are disabled, the previous graph and cost are unchanged.Examples/volumetricsscene with two shadow-casting spotlights and a height fog layer.textureSampleCompareLevelso shadow lookups are legal in compute; shadow maps are single-mip, so fragment behavior is unchanged.Usage
Validation
cargo test --workspace --no-fail-fastpasses.cargo check --workspacepasses with the workspace clippy driver and-D warnings.Crates/andExamples/.Part of the v1.6.0 renderer overhaul (#877).
88ee8b88de9f3e1b6fee9f3e1b6fee03148a476cSmart test results
Result: PASS
Scope: full workspace
Reason: workspace-level change: Cargo.lock
Elapsed: 12m 17s
Workflow run
Overall: 462 tests, 452 passed, 0 failed, 10 skipped
Nextest: 451 tests, 451 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.