How to use the postprocessing.BlendFunction 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 slammayjammay / hyper-postprocessing / examples / effects / retro / index.js View on Github external
constructor(name, options = {}) {
		const fragmentShader = readFileSync(resolve(__dirname, '../../glsl/' + name + '.glsl')).toString();
		options.blendFunction = options.blendFunction || POSTPROCESSING.BlendFunction.NORMAL;

		super(name, fragmentShader, options);
	}
}
github luan007 / libao / three-helper.js View on Github external
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,
            resolutionScale: 0.5,
            distinction: 4.0
        });
        bloomEffect.blendMode.opacity.value = 2.1;


        var bokeh = new post_pss.EffectPass(options.camera, bokehEffect, bloomEffect);
        composer.bokeh = bokeh;
        composer.addPass(bokeh);
        bokeh.renderToScreen = true;
        window.bokeh = bokeh;
    }

    return composer;
}