refactor(material): add surface contract and G-buffer shader variant #943
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!943
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/renderer-phase-4"
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 4a: give PBR materials a shared
Surfacecontract and a G-buffer shader variant. No renderer behavior changes yet.surface()node returns albedo, normal, roughness, metallic, emissive, occlusion and alpha without applying lighting.surface(), so the deferred path shares the exact material math.pbr_bindings,pbr_vertex) so forward and G-buffer variants assemble from one library.@location(0)albedo + AO@location(1)normal + roughness@location(2)metallic + emissiveThe G-buffer pass, deferred lighting shader and clustered light culling are the next PRs.
Verification
cargo fmt --all -- --checkcargo clippy -p orbital_shader_pbr -p orbital_resources -p orbital_renderer -p orbital_app -- -D warningscargo test -p orbital_shader_pbr -p orbital_resources -p orbital_renderer -p orbital_app --no-fail-fastRefs #781.
Smart test results
Result: PASS
Scope: orbital_resources, orbital_shader_pbr
Reason: directly changed crates
Elapsed: 1m 27s
Workflow run
Overall: 24 tests, 24 passed, 0 failed, 0 skipped
Nextest: 24 tests, 24 passed, 0 failed, 0 skipped
Doctests: no tests reported