tofu.js
Version:
a helper three.js library for building UC-AR
24 lines (17 loc) • 654 B
JavaScript
/* eslint no-unused-vars: 0 */
export default class Pass {
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.renderToScreen = false;
}
setSize(width, height) {}
render(renderer, writeBuffer, readBuffer, delta, maskActive) {
console.error('Pass: .render() must be implemented in derived pass.');
}
}