Explorar el Código

Fix lightBlock when no light

David Catuhe hace 6 años
padre
commit
52c474a637
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  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;