Browse Source

Fix tint texture not taken into account

Popov72 5 years ago
parent
commit
f0545c75ee
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

@@ -158,7 +158,7 @@ export class ClearCoatBlock extends NodeMaterialBlock {
 
         defines.setValue("CLEARCOAT", true);
         defines.setValue("CLEARCOAT_TEXTURE", this.texture.isConnected);
-        defines.setValue("CLEARCOAT_TINT", this.tintColor.isConnected || this.tintTexture.isConnected);
+        defines.setValue("CLEARCOAT_TINT_TEXTURE", this.tintTexture.isConnected);
         defines.setValue("CLEARCOAT_BUMP", this.bumpTexture.isConnected);
     }