Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
shader(shaderMaterial, renderToScreen = false, inputName = 'inputBuffer') {
const pass = new ShaderPass(shaderMaterial, inputName);
pass.renderToScreen = renderToScreen;
manager.composer.addPass(pass);
return manager.effects;
}
};