three.js-fbo
FBO Module for use with THREE.js. Very useful for computing particles.
Example
Example use case.
;; let material; // a THREE.js material const positionFBO = tWidth = 512 // simulation texture width tHeight = 512// simulation texture height numTargets = 3 // number of targets filterType = THREENearestFilter // THREE.js texture filter type format = THREERGBAFormat // THREE.js texture format type renderer // THREE.js renderer uniforms // uniforms to pass to shaders simulationVertexShader // simulation vertex shader simulationFragmentShader // simulation fragment shader; // your render animation event func { positionFBO; materialuniformstPositionvalue = positionFBO;}
Contributors
- Tuqire Hussain me@tuqire.com