How to use the postprocessing/src/passes/ShaderPass.ShaderPass function in postprocessing

To help you get started, we’ve selected a few postprocessing examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github WhitestormJS / whs.js / packages / w-core / src / old_modules / app / PostProcessorModule.js View on Github external
this.defer.then(() => {
      if (!material.uniforms[textureID])
        material.uniforms[textureID] = {value: null};

      const pass = new ShaderPass(material, textureID);

      this.composer.addPass(pass);
      this.currentPass = pass;
    });
github WhitestormJS / whs.js / src / modules / app / PostProcessorModule.js View on Github external
this.defer.then(() => {
      if (!material.uniforms[textureID])
        material.uniforms[textureID] = {value: null};

      const pass = new ShaderPass(material, textureID);

      this.composer.addPass(pass);
      this.currentPass = pass;
    });