Skip to content

Commit

Permalink
bloom: use emissive instead of base_color for emissive (#12220)
Browse files Browse the repository at this point in the history
# Objective

- bloom is not working anymore in 3d after
#12163

## Solution

- Fix a copy paste mistake and use emissive for the emissive
  • Loading branch information
mockersf authored Mar 1, 2024
1 parent 499c978 commit 4aca55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/pbr_material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ impl AsBindGroupShaderType<StandardMaterialUniform> for StandardMaterial {

StandardMaterialUniform {
base_color: LinearRgba::from(self.base_color).to_f32_array().into(),
emissive: LinearRgba::from(self.base_color).to_f32_array().into(),
emissive: LinearRgba::from(self.emissive).to_f32_array().into(),
roughness: self.perceptual_roughness,
metallic: self.metallic,
reflectance: self.reflectance,
Expand Down

0 comments on commit 4aca55d

Please sign in to comment.