mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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:
parent
0cbabefbad
commit
d47bb3e6e9
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue