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) • 415 B
JavaScript
import{SCENE_TYPE as t}from"../constants.js";import{Effect as e}from"../Effect/index.js";class o extends e{constructor(){super();const e=new Set;e.add(t.fixed),this.type=e,this.composerFragmentString={beforeGl_FragColor:"\n\t\t\t\tfloat areaSWU = smoothstep(0.4,0.,vUv.y);\n\t\t\t\tareaSWU = pow(areaSWU,4.);\n\t\t\n\t\t\t\tnewUV.x -= (vUv.x - 0.5)*0.1*areaSWU*scrollSpeed;\n\t\t\t"}}}export{o as ScrollWrapUnder};