Browse Source

Fix texture swizzle

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

@@ -227,7 +227,7 @@ export class ClearCoatBlock extends NodeMaterialBlock {
                 vClearCoatParams,
                 specularEnvironmentR0,
             #ifdef CLEARCOAT_TEXTURE
-                ${texture},
+                ${texture}.rg,
             #endif
             #ifdef CLEARCOAT_TINT
                 vClearCoatTintParams,