Browse Source

fix block

sebavan 4 years ago
parent
commit
ccc59e36ba
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Materials/Node/Blocks/PBR/clearCoatBlock.ts

+ 3 - 0
src/Materials/Node/Blocks/PBR/clearCoatBlock.ts

@@ -313,6 +313,9 @@ export class ClearCoatBlock extends NodeMaterialBlock {
                     ambientMonochrome,
                 #endif
             #endif
+            #if defined(CLEARCOAT_BUMP) || defined(TWOSIDEDLIGHTING)
+                gl_FrontFacing ? 1. : -1.,
+            #endif
                 clearcoatOut
             );
         #else