瀏覽代碼

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;