Преглед на файлове

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;