sebavan %!s(int64=5) %!d(string=hai) anos
pai
achega
7a60375156
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/Materials/effectRenderer.ts

+ 2 - 1
src/Materials/effectRenderer.ts

@@ -164,12 +164,13 @@ export class EffectRenderer {
 
             // Reset state
             this.setViewport();
-            this.applyEffectWrapper(effectWrapper);
 
             if (renderTo) {
                 this.engine.bindFramebuffer(renderTo.getInternalTexture()!);
             }
 
+            this.applyEffectWrapper(effectWrapper);
+
             this.draw();
 
             if (renderTo) {