Shader rework #775
No reviewers
Labels
No labels
Context: Bug
Context: Enhancements
Platform: Android
Platform: Linux
Platform: Web
Platform: Windows
Platform: iOS
Platform: macOS
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!775
Loading…
Reference in a new issue
No description provided.
Delete branch "shader-rework"
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?
This changes the shader system by splitting it up into individual "nodes" which can be chained together. Think of it as a in-source/code node graph. Later, we can extend this with a visual "Node editor".
The PBR shader failed at runtime with UnknownNode { name: 'pbr_factors' } because the PBR/math/engine/world-environment node libraries were never registered in the global NodeRegistry. Only the prelude was loaded. Changes: - Replace OnceLock<NodeRegistry> with LazyLock<RwLock<NodeRegistry>> to allow late registration of additional libraries - Add register_global_library() public function - Register math, engine, PBR, and world-environment libraries at app startup before any shader assembly occursaf06e7e94atocb04b9bcef