bevy/pipelined
Robert Swain 02b8a782e5 bevy_render2: Add support for #else for shader defs (#3206)
# 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.
2021-12-02 03:27:13 +00:00
..
bevy_core_pipeline Add support for opaque, alpha mask, and alpha blend modes (#3072) 2021-11-16 03:03:27 +00:00
bevy_gltf2 Faster gltf loader (re-merge of #3165) (#3189) 2021-11-25 16:35:50 +00:00
bevy_pbr2 fix calls to as_rgba_linear (#3200) 2021-11-28 10:40:42 +00:00
bevy_render2 bevy_render2: Add support for #else for shader defs (#3206) 2021-12-02 03:27:13 +00:00
bevy_sprite2 Sprite change image (#3207) 2021-12-01 23:09:31 +00:00