update UI
This commit is contained in:
parent
4c4087a8a9
commit
0b8fa336ce
|
@ -25,7 +25,7 @@
|
|||
border: solid 2px #11111b;
|
||||
border-radius: 20px;
|
||||
}
|
||||
#stats {
|
||||
#content {
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
box-sizing: border-box;
|
||||
|
@ -38,23 +38,32 @@
|
|||
</head>
|
||||
<body>
|
||||
<canvas id="cv" width="1000" height="700"></canvas>
|
||||
<div id="stats">
|
||||
<div>FPS: <span id="fps"></span></div>
|
||||
<div>Frame time: <span id="ms"></span></div>
|
||||
<div id="controls">
|
||||
<div>
|
||||
<div id="content">
|
||||
Stats:
|
||||
<ul>
|
||||
<li>FPS: <span id="fps"></span></li>
|
||||
<li>Frame time: <span id="ms"></span></li>
|
||||
</ul>
|
||||
|
||||
Controls:
|
||||
<ul>
|
||||
<li>
|
||||
Click & Drag to move camera
|
||||
</li>
|
||||
<li>
|
||||
LookAt Matrix: <input type="range" min=0 max=1 step=0.01 value=0 id="interpolateLookAt" autocomplete="off">
|
||||
</div>
|
||||
<div>
|
||||
</li>
|
||||
<li>
|
||||
Projection Matrix: <input type="range" min=0 max=1 step=0.01 value=0 id="interpolateProjection" autocomplete="off" disabled="yes">
|
||||
</div>
|
||||
<div>
|
||||
</li>
|
||||
<li>
|
||||
Use virtual camera: <input type="checkbox" id="displayMatricesVirtually" checked autocomplete="off">
|
||||
</div>
|
||||
<div>
|
||||
</li>
|
||||
<li>
|
||||
Backface Culling: <input type="checkbox" id="backfaceCulling" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue