Skip to content

Commit

Permalink
fix post-processing effect framebuffer binding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhuang01 committed May 31, 2019
1 parent f74cd45 commit d305632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/src/passes/screen-pass.js
Expand Up @@ -4,7 +4,7 @@
// Attribution: This class and the multipass system were inspired by
// the THREE.js EffectComposer and *Pass classes

import {ClipSpace, withParameters} from '@luma.gl/core';
import {ClipSpace, withParameters, clear} from '@luma.gl/core';
import Pass from './pass';

export default class ScreenPass extends Pass {
Expand Down Expand Up @@ -45,7 +45,7 @@ export default class ScreenPass extends Pass {
* @param {Framebuffer} outputBuffer - Frame buffer that serves as the output render target
*/
_renderPass(gl, {inputBuffer, outputBuffer}) {
outputBuffer.clear();
clear(gl, {color: true});
this.model.draw({
uniforms: {
texture: inputBuffer,
Expand Down

0 comments on commit d305632

Please sign in to comment.