UNPKG

macaw-threejs

Version:

Macaw Three.js is ready to use library to connect Three.js with your project.<br/> Under the hood is a fully optimized, clean Three.js set up to make it easy to implement effects for images (future text, etc.). With effects out of the box, you don't even

2 lines (1 loc) 412 B
class s{constructor(s){const{core:e}=s;this._core=e}setUniforms(s){const{image:e=!1,shaderPass:o=!1}=s;if(e&&this._core.storage.meshImages.forEach((s=>{s.setUniforms()})),o){const{time:s}=this._core.controllers.render;this._core.composer.shaderPass.uniforms.u_time.value=s}}setImagesPosition(s){const{resize:e=!1}=s;this._core.storage.meshImages.forEach((s=>{s.setPosition(e)}))}}export{s as GeneralController};