three实现三维发光粒子宇宙银河系星体旋转动画效果代码

代码语言:html

所属分类:三维

代码描述:three实现三维发光粒子宇宙银河系星体旋转动画效果代码,结合lil-gui科修改参数呈现不同的效果。

代码标签: three 三维 发光 粒子 宇宙 银河 星体 旋转 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <meta charset="UTF-8">

  
  
  
<style>
html,
body {
  margin: 0;
  overflow: hidden;
}


.webgl {
  position: fixed;
  outline: none;
  width: 100%;
  height: 100%;
}
</style>


</head>

<body  >

<canvas class="webgl"></canvas>
<script  type="importmap">{
	"imports": {
		"three": "//repo.bfw.wiki/bfwrepo/js/module/three/build/three.module.js"
	}
}</script>


  
      <script type="module">
		import GUI fr.........完整代码请登录后点击上方下载按钮下载查看

网友评论0