three实现可操作三维星河粒子星体效果代码
代码语言:html
所属分类:粒子
代码描述:three实现可操作三维星河粒子星体效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body{ background-image: url('//repo.bfw.wiki/bfwrepo/image/63e740700414a.png'); } </style> </head> <body> <canvas class="webgl"> </canvas> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/three.133.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/OrbitControls.133.js"></script> <script type="module"> const canvas = document.querySelector('canvas.webgl') // Scene const scene = new THREE.Scene() //galaxy const parameters = {} parameters.count = 100000.........完整代码请登录后点击上方下载按钮下载查看
网友评论0