three实现炫酷三维宇宙粒子能量场动画效果代码
代码语言:html
所属分类:粒子
代码描述:three实现炫酷三维宇宙粒子能量场动画效果代码
代码标签: three 炫酷 三维 宇宙 粒子 能量场 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Genesis Engine - Solaris</title>
<style>
* { margin:0; padding:0; box-sizing: border-box; }
html, body {
height:100%;
background:#000;
overflow:hidden;
font-family: 'Inter', sans-serif;
}
canvas {
width:100%;
height:100%;
display:block;
position:fixed;
top:0;
left:0;
}
.overlay {
position: fixed;
top: 1rem;
left: 1rem;
color: white;
text-shadow: 0 0 5px black;
pointer-events: none;
opacity: 0.7;
}
.overlay h1 {
font-size: 1.5rem;
font-weight: 500;
}
.overlay p {
font-size: 0.9rem;
font-weight: 300;
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;500&display=swap" rel="stylesheet">
<div class="overlay">
<h1>Solaris</h1>
<p>Drag to orbit. Scroll to zoom.</p>
</div>
<script type="importmap">
{
"imports":{
"three":"//repo.bfw.wiki/bfwrepo/js/module/three/build/164/three.module.js",
"three/addons/":"//repo.bfw.wiki/bfwrepo/js/module/three/examples/164/jsm/"
}
}
</script>
<script type="module">
im.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0