Skip to content

Commit

Permalink
Sync pbr_types.wgsl StandardMaterial values (#8380)
Browse files Browse the repository at this point in the history
# 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
#7664.

## Solution

Adapt the values: `metallic = 0.0`, `perceptual_roughness = 0.5`.
  • Loading branch information
jannik4 authored Apr 14, 2023
1 parent 0cbabef commit d47bb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_pbr/src/render/pbr_types.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d47bb3e

Please sign in to comment.