mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 03:23:20 +00:00
02b8a782e5
# Objective - Add support for `#else` for shader defs ## Solution - When entering a scope with `#ifdef` or `#ifndef`, if the parent scope is truthy, and the shader definition is also truthy, then the a new scope is pushed onto the scope stack that is also truthy, else falsy. When encountering a subsequent else clause within a scope, if the parent is truthy and the current scope is truthy, then it should become falsy. If the parent scope is truthy and the current scope is falsy then it should become truthy. If the parent scope is falsy, then the current scope should remain falsy as the parent scope takes precedent. - I added a simple test for an else case. |
||
---|---|---|
.. | ||
bevy_core_pipeline | ||
bevy_gltf2 | ||
bevy_pbr2 | ||
bevy_render2 | ||
bevy_sprite2 |