How to use the postprocessing/src/core/EffectComposer.EffectComposer 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
manager(manager) {
    manager.define('postprocessor');

    this.effects = manager.use('rendering').effects;
    this.renderer = manager.get('renderer');
    this.scene = manager.get('scene');
    this.camera = manager.get('camera');

    this.composer = new EffectComposer(this.renderer, this.params);

    manager.use('rendering').stop();

    const composer = this.composer;
    this.renderLoop = new Loop(clock => composer.render(clock.getDelta())).start(manager.handler);

    manager.update({
      renderer: renderer => {
        this.composer.replaceRenderer(renderer);
      },

      scene: scene => {
        this.scene = scene;
      },

      camera: camera => {
github WhitestormJS / whs.js / src / modules / app / PostProcessorModule.js View on Github external
manager(manager) {
    manager.define('postprocessor');

    this.effects = manager.use('rendering').effects;
    this.renderer = manager.get('renderer');
    this.scene = manager.get('scene');
    this.camera = manager.get('camera');

    this.composer = new EffectComposer(this.renderer, this.params);

    manager.use('rendering').stop();

    const composer = this.composer;
    this.renderLoop = new Loop(clock => composer.render(clock.getDelta())).start(manager.handler);

    manager.update({
      renderer: renderer => {
        this.composer.replaceRenderer(renderer);
      },

      scene: scene => {
        this.scene = scene;
      },

      camera: camera => {