文件名称:three-js html5 Canvas酷炫宇宙黑洞粒子动画特效.zip
文件大小:133KB
文件格式:ZIP
更新时间:2022-07-31 04:13:03
js特效-three-js html5 Canvas酷炫宇宙黑洞粒子动画特效
代码片段: float random(float val) { return fract(sin(val) * seed); } vec2 random2(vec2 st, float seed){ st = vec2( dot(st,vec2(127.1,311.7)), dot(st,vec2(269.5,183.3)) ); return -1.0 2.0*fract(sin(st)*seed); } float random2d(vec2 uv) { return fract( sin( dot( uv.xy, vec2(12.9898, 78.233) ) ) * seed); }