1 Star 0 Fork 0

ftgi/WebGL-learning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
webgl.html 2.07 KB
一键复制 编辑 原始数据 按行查看 历史
ftgi 提交于 2021-07-12 16:13 +08:00 . first
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>webgl</title>
<style>
.canvas-warpper {
position: relative;
}
.canvas-settings {
display: flex;
flex-direction: column;
position: absolute;
right: 0;
top: 0;
align-items: flex-end;
}
.canvas-settings input {
margin-left: 50px;
}
</style>
</head>
<body>
<div class="canvas-warpper">
<div>
<canvas width="800" height="600" id="webgl"></canvas>
</div>
<!-- <div class="canvas-settings">
<label for="x">
x
<input type="range" min="-200" max="+200" step="1" id="x" />
</label>
<label for="y">
y
<input type="range" min="-200" max="+200" step="1" id="y" />
</label>
<label for="z">
z
<input type="range" min="-200" max="+200" step="1" id="z" />
</label>
<label for="scale">
scale
<input type="range" min="0.5" max="2" step="0.1" id="scale" />
</label>
<label for="xRotation">
x rotation
<input type="range" min="-180" max="180" step="1" id="xRotation" />
</label>
<label for="yRotation">
y rotation
<input type="range" min="-180" max="180" step="1" id="yRotation" />
</label>
<label for="zRotation">
z rotation
<input type="range" min="-180" max="180" step="1" id="zRotation" />
</label>
<label for="fov">
field of view
<input type="range" min="60" max="180" step="1" id="fov" />
</label>
</div> -->
</div>
<script src="./dist/bundle.js"></script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HowarXie/web-gl-learning.git
git@gitee.com:HowarXie/web-gl-learning.git
HowarXie
web-gl-learning
WebGL-learning
master

搜索帮助