Skip to content

Commit

Permalink
chore: update ClearCoat sample
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Jul 22, 2024
1 parent 4706772 commit 4b34685
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions samples/material/Sample_ClearCoat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ class Sample_ClearCoat {
let mat = new LitMaterial();
mat.baseColor = Color.randomRGB();
mat.metallic = 1;
mat.roughness = 0.85;
// mat.clearCoatRoughnessMap = clearCoatRoughnessTex;
// mat.clearcoatFactor = i / 10;
mat.roughness = (10 - i) / 30;
mat.clearCoatRoughnessMap = clearCoatRoughnessTex;
mat.clearcoatColor = new Color(1.0, 1.0, 1.0);
mat.clearcoatWeight = 1;
mat.clearcoatFactor = 0.5;
Expand Down

0 comments on commit 4b34685

Please sign in to comment.