mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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:
parent
d87505899f
commit
0ec634763e
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue