mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
PBR: use attenuation instead of base_color for attenuation (#12266)
# Objective - Copy paste error in #12163 ## Solution - Fix it
This commit is contained in:
parent
5619bd09d1
commit
04ec10552c
1 changed files with 3 additions and 1 deletions
|
@ -727,7 +727,9 @@ impl AsBindGroupShaderType<StandardMaterialUniform> for StandardMaterial {
|
|||
thickness: self.thickness,
|
||||
ior: self.ior,
|
||||
attenuation_distance: self.attenuation_distance,
|
||||
attenuation_color: LinearRgba::from(self.base_color).to_f32_array().into(),
|
||||
attenuation_color: LinearRgba::from(self.attenuation_color)
|
||||
.to_f32_array()
|
||||
.into(),
|
||||
flags: flags.bits(),
|
||||
alpha_cutoff,
|
||||
parallax_depth_scale: self.parallax_depth_scale,
|
||||
|
|
Loading…
Reference in a new issue