# 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 |
||
|---|---|---|
| .. | ||
| mod.rs | ||
| prepass_bindings.rs | ||
| prepass_bindings.wgsl | ||
| prepass_io.wgsl | ||
| prepass_utils.wgsl | ||
| prepass.wgsl | ||