-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
executable file
·37 lines (36 loc) · 1.52 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!doctype html>
<html>
<head>
<title>JS Rasterizer</title>
<script src="./vec4.js"></script>
<script src="./mat4.js"></script>
<script src="./model.js"></script>
<script src="./shader.js"></script>
<script src="./main.js"></script>
</head>
<body onload="start()">
<h1>JS Rasterizer</h1>
<p>
A software 3D rasterizer written in JavaScript.
You can browse the source code at <a href="https://github.com/delphifirst/js-rasterizer">source code</a>.
</p>
<canvas id="raster-canvas" style="margin: 20px" width="400" height="400">
Your browser doesn't appear to support the <code><canvas></code> element.
</canvas>
<form>
<span id="label-fps">FPS: 0</span> <br/>
<span>Texture: </span>
<select name="textures" onchange="changeTexture(this.value)">
<option value="texture-madoka">Madoka</option>
<option value="texture-checkerboard">Checkerboard</option>
</select>
<input type="checkbox" id="checkbox-debug" onclick="toggleDebug()"/> Debug Mode
<input type="checkbox" id="checkbox-debug-line" onclick="toggleDebugLine()"/> Debug Line <br/>
<img id="texture-madoka" width="0" height="0" src="./madoka.png" alt="Texture used for testing"/>
<img id="texture-checkerboard" width="0" height="0" src="./checkerboard.png" alt="Texture used for testing"/>
<canvas id="texture-canvas" style="margin: 20px" width="256" height="256">
Your browser doesn't appear to support the <code><canvas></code> element.
</canvas>
</form>
</body>
</html>