Explorar o código

Fix lightBlock when no light

David Catuhe %!s(int64=6) %!d(string=hai) anos
pai
achega
52c474a637
Modificáronse 1 ficheiros con 0 adicións e 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;