gl-matrix+webgl实现shader屏保动画代码
代码语言:html
所属分类:动画
代码描述:gl-matrix+webgl实现shader屏保动画代码
代码标签: gl-matrix webgl shader 屏保 动画 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #001;
}
canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
#controls {
position: fixed;
top: 10px;
left: 10px;
z-index: 100;
display: flex;
align-items: center;
z-index: 1;
}
button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
border-radius: 10px;
font-size: 16px;
margin: 4px 2px;
cursor: pointe.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0