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) 556 B
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={afterGl_FragColor:"\n\t\t\t\tfloat areaSWT = smoothstep(1.,0.8,vUv.y)*2.-1.;\n\t\t\t\tfloat preNoiseSWT = 0.5*(cnoise(vec3(vUv*5.,u_time*0.075))+1.);\n\t\t\t\tfloat noiseSWT = smoothstep(0.5,0.51,preNoiseSWT+areaSWT);\n\t\t\n\t\t\t\tgl_FragColor = mix(vec4(0.),texture2D(tDiffuse, newUV),noiseSWT);\n\t\t\t\treturn;\n\t\t\t"}}}export{o as ScrollWaveTop};