Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
options.composer = options.composer || _cache.composer;
options.renderer = options.renderer || _cache.renderer;
options.scene = options.scene || _cache.scene;
options.camera = options.camera || _cache.camera;
if (!options.composer) {
options.composer = threeComposerEx();
}
var composer = options.composer;
var render_pass = new post_pss.RenderPass(options.scene, options.camera);
render_pass.renderToScreen = false;
composer.addPass(render_pass);
if (options.bokeh) {
const bokehEffect = new post_pss.RealisticBokehEffect({
focus: 90.0,
focalLength: 190,
luminanceThreshold: 0.325,
luminanceGain: 2.0,
bias: -0.35,
fringe: 0.7,
maxBlur: 50,
rings: 5,
samples: 5,
showFocus: false,
manualDoF: false,
pentagon: true
});
const bloomEffect = new post_pss.BloomEffect({
blendFunction: post_pss.BlendFunction.ADD,