bevy/crates/bevy_pbr/src/prepass
Christopher Biscardi 74b5073f75
Make VERTEX_COLORS usable in prepass shader, if available (#10341)
# Objective

I was working with forward rendering prepass fragment shaders and ran
into an issue of not being able to access vertex colors in the prepass.
I was able to access vertex colors in regular fragment shaders as well
as in deferred shaders.

## Solution

It seems like this `if` was nested unintentionally as moving it outside
of the `deferred` block works.

---

## Changelog

Enable vertex colors in forward rendering prepass fragment shaders
2023-11-03 00:54:13 +00:00
..
mod.rs Make VERTEX_COLORS usable in prepass shader, if available (#10341) 2023-11-03 00:54:13 +00:00
prepass_bindings.rs Bind group entries (#9694) 2023-10-21 15:39:22 +00:00
prepass_bindings.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00
prepass_io.wgsl pbr shader cleanup (#10105) 2023-10-13 19:12:40 +00:00
prepass_utils.wgsl StandardMaterial Light Transmission (#8015) 2023-10-31 20:59:02 +00:00
prepass.wgsl update shader imports (#10180) 2023-10-21 11:51:58 +00:00