three+webgl实现三维圆形画廊相册滚动效果代码
代码语言:html
所属分类:画廊相册
代码描述:three+webgl实现三维圆形画廊相册滚动效果代码
代码标签: three webg 三维 圆形 画廊 相册 滚动
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> </head> <body > <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/three.133.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/dat.gui-min.js"></script> <script > // init let textures = [`//repo.bfw.wiki/bfwrepo/image/62c13a0998077.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_400,h_300,/quality,q_90`, `//repo.bfw.wiki/bfwrepo/image/62c370e5aa425.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_400,h_300,/quality,q_90`, `//repo.bfw.wiki/bfwrepo/image/62c4c76e3f9fa.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_400,h_300,/quality,q_90`, `//repo.bfw.wiki/bfwrepo/image/62ccdafc25039.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_400,h_300,/quality,q_90`]. map(url => new THREE.TextureLoader().load(url)); const camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 0.01, 10 ); camera.position.z = 2; const scene = new THREE.Scene(); const geometry = new THREE.PlaneBufferGeometry(1, 1, 10, 10); const material = new THREE.ShaderMaterial({ unifor.........完整代码请登录后点击上方下载按钮下载查看
网友评论0