@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
25 lines (24 loc) • 778 B
JavaScript
;
export class PassWithHooks {
constructor() {
// if set to true, the pass is processed by the composer
this.enabled = true;
// if set to true, the pass indicates to swap read and write buffer after rendering
this.needsSwap = true;
// if set to true, the pass clears its buffer before rendering
this.clear = false;
// if set to true, the result of the pass is rendered to screen. This is set automatically by EffectComposer.
this.renderToScreen = false;
//
this.updatesRender = true;
}
setSize(width, height) {
}
render(renderer, writeBuffer, readBuffer, deltaTime, maskActive) {
console.error("THREE.Pass: .render() must be implemented in derived pass.");
}
onBeforeRender() {
}
onAfterRender() {
}
}