1 Star 0 Fork 0

轻飘yyf/webgl-shader-2d-lines

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
ColaColin 提交于 2016-05-10 20:42 . initial commit
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Drag lines to render them</title>
<link rel="stylesheet" type="text/css" href="example.css">
<script src="libs/gl-matrix-min.js"></script>
<script src="libs/twgl.min.js"></script>
<script src="libs/knockout.js"></script>
<script src="libs/stats.js"></script>
<script src="boilerplate.js"></script>
<script src="LinesRenderer.js"></script>
<script src="app.js"></script>
</head>
<body>
<canvas id='the-canvas' style="z-index: 2; width: 100%; height: 100vh; position: fixed;"
data-bind="event: {mousedown: mouseDown, mouseup: mouseUp, mousemove: mouseMove}"></canvas>
<div class="stats" data-bind="self: statsElement">
</div>
<div class="uibar">
<div>
Drag to create lines.
</div>
<div>
<button data-bind="click: clearLines">Clear Lines</button><br/>
<span data-bind="text: numberOfLines"></span> lines constructed from <span data-bind="text: numberOfElements"></span> points.<br/>
Wiggle lines: <input type="checkbox" data-bind="checked: isWiggleLines" /> <br/>
Render Wireframe: <input type="checkbox" data-bind="checked: isRenderWireFrame" /><br/>
</div>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yyf994/webgl-shader-2d-lines.git
git@gitee.com:yyf994/webgl-shader-2d-lines.git
yyf994
webgl-shader-2d-lines
webgl-shader-2d-lines
master

搜索帮助