Spaces:
Running
Running
File size: 528 Bytes
8194362 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import {
OrthographicCamera,
Scene,
Mesh,
PlaneBufferGeometry
} from 'three'
export default class Pass {
constructor () {
this.clear = false
this.renderToScreen = false
this.camera = new OrthographicCamera(-1, 1, 1, -1, 0, 1)
this.scene = new Scene()
this.quad = new Mesh(new PlaneBufferGeometry(2, 2), null)
this.quad.frustumCulled = false // Avoid getting clipped
this.scene.add(this.quad)
}
setSize (width, height) {
}
render (renderer, writeBuffer, readBuffer) {
}
}
|