feat(renderer): add sorted transparency and PBR alpha modes #942
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!942
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/renderer-transparency"
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
Stacked on #941. Adds sorted transparent rendering and PBR alpha modes, exercising the material render state from the previous PR.
alpha_factor.Opaque: alpha ignored for compositing; depth write on.Mask(cutoff): fragment discard below the cutoff; still opaque queue and depth write.Blend: transparent queue,ALPHA_BLENDING, depth write off, no opaque shadow casting.OPAQUE/MASK/BLENDand base-color alpha.transparentgraph pass after the opaque model pass:RenderQueue::Transparentmaterials.Verification
cargo fmt --all -- --checkcargo clippy -p orbital_camera -p orbital_model -p orbital_renderer -p orbital_shader_pbr -p orbital_importer_gltf -p orbital_procgeo -p orbital_app -- -D warningscargo test -p orbital_camera -p orbital_model -p orbital_renderer -p orbital_shader_pbr -p orbital_importer_gltf -p orbital_procgeo -p orbital_app --no-fail-fastcargo test -p orbital_resources --test wgsl_shaders --no-fail-fastRefs #872, #781.
Smart test results
Result: PASS
Scope: orbital_camera, orbital_importer_gltf, orbital_model, orbital_procgeo, orbital_renderer, orbital_shader_pbr
Reason: directly changed crates
Elapsed: 3m 6s
Workflow run
Overall: 27 tests, 27 passed, 0 failed, 0 skipped
Nextest: 27 tests, 27 passed, 0 failed, 0 skipped
Doctests: no tests reported