three+webgl实现三维水下视角动画效果代码

代码语言:html

所属分类:动画

代码描述:three+webgl实现三维水下视角动画效果代码

代码标签: three webgl 三维 水下 视角

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

<!DOCTYPE html>
<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>

<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-fragment">
precision highp float;

uniform vec2 u_resolution;
uniform float u_time;

#define MAX_STEPS 8
#define EPSILON 0.001
#define .........完整代码请登录后点击上方下载按钮下载查看

网友评论0