소스 검색

fix block

sebavan 4 년 전
부모
커밋
ccc59e36ba
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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