bevy/crates/bevy_pbr/src/prepass
robtfm 6124b20f4b use blendstate blend for alphamode::blend (#7899)
# Objective

revert combining pipelines for AlphaMode::Blend and AlphaMode::Premultiplied & Add

the recent blend state pr changed `AlphaMode::Blend` to use a blend state of `Blend::PREMULTIPLIED_ALPHA_BLENDING`, and recovered the original behaviour by multiplying colour by alpha in the standard material's fragment shader. 

this had some advantages (specifically it means more material instances can be batched together in future), but this also means that custom materials that specify `AlphaMode::Blend` now get a premultiplied blend state, so they must also multiply colour by alpha.

## Solution

revert that combination to preserve 0.9 behaviour for custom materials with AlphaMode::Blend.
2023-03-05 00:17:44 +00:00
..
mod.rs use blendstate blend for alphamode::blend (#7899) 2023-03-05 00:17:44 +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
prepass.wgsl Use prepass shaders for shadows (#7784) 2023-03-02 08:21:21 +00:00