Преглед изворни кода

Fix tint texture not taken into account

Popov72 пре 5 година
родитељ
комит
f0545c75ee
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
     }