فهرست منبع

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);
     }