fix emissive value in StandardMaterial after swith to LinearRgba (#13502)

# Objective

- #13352 broke bloom in 3d

## Solution

- Use the correct value for `emissive` in `StandardMaterial`. It's
computed just above but unused

d87505899f/crates/bevy_pbr/src/pbr_material.rs (L975-L976)

## Testing

- Run example `bloom_3d`
This commit is contained in:
François Mockers 2024-05-25 03:53:47 +02:00 committed by GitHub
parent d87505899f
commit 0ec634763e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -977,7 +977,7 @@ impl AsBindGroupShaderType<StandardMaterialUniform> for StandardMaterial {
StandardMaterialUniform {
base_color: LinearRgba::from(self.base_color).to_vec4(),
emissive: self.emissive.to_vec4(),
emissive,
roughness: self.perceptual_roughness,
metallic: self.metallic,
reflectance: self.reflectance,