PBR: use attenuation instead of base_color for attenuation (#12266)

# Objective

- Copy paste error in #12163

## Solution

- Fix it
This commit is contained in:
François 2024-03-02 23:20:44 +01:00 committed by GitHub
parent 5619bd09d1
commit 04ec10552c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,