threejs打造虚幻背景和繁星点点文字效果代码

代码语言:html

所属分类:游戏

代码描述:threejs打造虚幻背景和繁星点点文字效果代码

代码标签: 景和 繁星 点点 文字 效果

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

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

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
* {
  box-sizing: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

body {
  height: 100vh;
  background-color: #000;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.c-hero {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  color: rgba(255, 255, 255, 0.95);
  font-family: "Exo 2", sans-serif;
  font-size: 9vmin;
  font-weight: 700;
  letter-spacing: 3vmin;
  text-transform: uppercase;
  text-shadow: #fdfd05 1px 0 30px;
  position: absolute;
}
</style>



</head>

<body  >
  <!-- 
 * HERO SPACE COMPONENT with SHADERZZZ <3
 * Made for FrontendHorse Twitch Stream
 * https://frontend.horse/episode/gorgeous-space-shaders
 *
 * SEPTEMBER 2021
 *
 * By ilithya
 * https://www.ilithya.rocks/
 * https://twitter.com/ilithya_rocks 
-->

<div id="shader" class="c-hero">
<!-- 	<h1>Spacebnb</h1> -->
</div>
<script id="vertex" type="x-shader/x-vertex">
	varying vec2 v.........完整代码请登录后点击上方下载按钮下载查看

网友评论0