three+webgl打造一个梦幻世界视觉效果代码

代码语言:html

所属分类:视觉差异

代码描述:three+webgl打造一个梦幻世界视觉效果代码

代码标签: 梦幻 世界 视觉 效果

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

<html lang="en"><head>

  <meta charset="UTF-8">

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

body {
  height: 100vh;
  background-color: black;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
</style>

</head>

<body>
  <!-- Shader Session with Bruno Simon | 2021
 * Bruno: 
 * https://twitter.com/bruno_simon
 * https://bruno-simon.com/
 *
 * We're curiouslyminded:
 * https://www.twitch.tv/curiouslyminded
 * https://www.youtube.com/c/curiouslyminded -->

<div id="shadercollab"></div>
<script id="vertex" type="x-shader/x-vertex">
	void main() { gl_Position = vec4(position, 1.0); }
</script>

<script id="fragment" type="x-shader/x-vertex">
precision highp float;
	
#define M_PI 3.1415926535897932384626433832795

uniform vec2 u_resolution;
uniform float u_time;
	
//	Classic Perlin 2D Noise 
//	by Stefan Gustavson
//
vec4 permute(vec4 x).........完整代码请登录后点击上方下载按钮下载查看

网友评论0