bevy/crates/bevy_pbr/src/prepass
IceSentry 71cf35ce42 Allow prepass in webgl (#7537)
# Objective

- Use the prepass textures in webgl

## Solution

- Bind the prepass textures even when using webgl, but only if msaa is disabled
- Also did some refactors to centralize how textures are bound, similar to the EnvironmentMapLight PR
- ~~Also did some refactors of the example to make it work in webgl~~
- ~~To make the example work in webgl, I needed to use a sampler for the depth texture, the resulting code looks a bit weird, but it's simple enough and I think it's worth it to show how it works when using webgl~~
2023-03-02 02:23:06 +00:00
..
mod.rs Allow prepass in webgl (#7537) 2023-03-02 02:23:06 +00:00
prepass.wgsl Add depth and normal prepass (#6284) 2023-01-19 22:11:13 +00:00
prepass_bindings.wgsl Add depth and normal prepass (#6284) 2023-01-19 22:11:13 +00:00
prepass_utils.wgsl Allow prepass in webgl (#7537) 2023-03-02 02:23:06 +00:00