Skip to content

Commit

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

# Objective

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

## Solution

- Fix a copy paste mistake and use emissive for the emissive
  • Loading branch information
mockersf authored and spectria-limina committed Mar 9, 2024
1 parent 52b5a8d commit aa85f9c
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 aa85f9c

Please sign in to comment.