Browse Source

Real fix...

Popov72 5 years ago
parent
commit
789ccda1e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Materials/Node/Blocks/PBR/clearCoatBlock.ts

+ 1 - 1
src/Materials/Node/Blocks/PBR/clearCoatBlock.ts

@@ -161,7 +161,7 @@ export class ClearCoatBlock extends NodeMaterialBlock {
         defines.setValue("CLEARCOAT_TINT", this.tintColor.isConnected || this.tintThickness.isConnected || this.tintAtDistance.isConnected || this.tintTexture.isConnected);
         defines.setValue("CLEARCOAT_TINT_TEXTURE", this.tintTexture.isConnected);
         defines.setValue("CLEARCOAT_BUMP", this.bumpTexture.isConnected);
-        defines.setValue("CLEARCOAT_DEFAULTIOR", this.ior.isConnected ? this.ior.connectInputBlock!.value : false);
+        defines.setValue("CLEARCOAT_DEFAULTIOR", this.ior.isConnected ? this.ior.connectInputBlock!.value === 1.5 : false);
 
     }