sebavan 4 vuotta sitten
vanhempi
commit
ccc59e36ba
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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