feat(renderer): add G-buffer pass and deferred lighting #944
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!944
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/renderer-deferred"
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 4b: the renderer now has a hybrid G-buffer/deferred path.
@location(0)albedo + AO (Rgba8Unorm)@location(1)normal + roughness (Rgba16Float)@location(2)metallic + emissive (Rgba16Float)PBRData, and runs the same IBL, punctual-light and shadow functions used by forward PBR.shadow -> prepare-world -> sky -> gbuffer -> deferred-lighting -> [forward opaque] -> [transparent] -> tonemapshadow -> prepare-world -> sky -> clear-depth -> forward opaque -> [transparent] -> tonemapTiled/clustered light culling is the next stacked PR. Until then the deferred pass loops the same light store as forward.
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_model,orbital_renderer,orbital_resourcescargo checkfor the facade, app and all three example templatesStacked on #943.
Refs #781.
Smart test results
Result: PASS
Scope: full workspace
Reason: workspace-level change: Cargo.lock
Elapsed: 6m 30s
Workflow run
Overall: 448 tests, 438 passed, 0 failed, 10 skipped
Nextest: 437 tests, 437 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.