소스 검색

Fix lightBlock when no light

David Catuhe 6 년 전
부모
커밋
52c474a637
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/Materials/Node/Blocks/Dual/lightBlock.ts

+ 0 - 2
src/Materials/Node/Blocks/Dual/lightBlock.ts

@@ -263,9 +263,7 @@ export class LightBlock extends NodeMaterialBlock {
 
         state.compilationString += this._declareOutput(diffuseOutput, state) + ` = diffuseBase;\r\n`;
         if (specularOutput.hasEndpoints) {
-            state.compilationString += `#ifdef SPECULARTERM\r\n`;
             state.compilationString += this._declareOutput(specularOutput, state) + ` = specularBase;\r\n`;
-            state.compilationString += `#endif\r\n`;
         }
 
         return this;