bevy/pipelined/bevy_render2
Robert Swain 09706cdb2a Support for normal maps including from glTF models (#2741)
# Objective

- Support tangent vertex attributes, and normal maps
- Support loading these from glTF models

## Solution

- Make two pipelines in both the shadow and pbr passes, one for without normal maps, one for with normal maps
- Select the correct pipeline to bind based on the presence of the normal map texture
- Share the vertex attribute layout between shadow and pbr passes
- Refactored pbr.wgsl to share a bunch of common code between the normal map and non-normal map entry points. I tried to do this in a way that will allow custom shader reuse.

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-11-04 21:47:57 +00:00
..
src Support for normal maps including from glTF models (#2741) 2021-11-04 21:47:57 +00:00
Cargo.toml WebGL2 support (#3039) 2021-10-29 00:46:18 +00:00