Sync pbr_types.wgsl StandardMaterial values (#8380)

# Objective

The default StandardMaterial values of `pbr_material.rs` and
`pbr_types.wgsl` are out of sync.
I think they are out of sync since
https://github.com/bevyengine/bevy/pull/7664.

## Solution

Adapt the values: `metallic = 0.0`, `perceptual_roughness = 0.5`.
This commit is contained in:
Jannik Obermann 2023-04-14 07:52:57 +02:00 committed by GitHub
parent 0cbabefbad
commit d47bb3e6e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,8 +37,8 @@ fn standard_material_new() -> StandardMaterial {
// NOTE: Keep in-sync with src/pbr_material.rs!
material.base_color = vec4<f32>(1.0, 1.0, 1.0, 1.0);
material.emissive = vec4<f32>(0.0, 0.0, 0.0, 1.0);
material.perceptual_roughness = 0.089;
material.metallic = 0.01;
material.perceptual_roughness = 0.5;
material.metallic = 0.00;
material.reflectance = 0.5;
material.flags = STANDARD_MATERIAL_FLAGS_ALPHA_MODE_OPAQUE;
material.alpha_cutoff = 0.5;