-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (35 loc) · 1.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Software Renderer</title>
</head>
<body>
<div id="app"></div>
<canvas id="canvas"></canvas>
<label><input type="checkbox" id="orthoCb" />Orthographic</label>
 
<label>
Shading:
<select id="shadingDd">
<option value="normalMapped-shadows">Shadows</option>
<option value="normalMapped">Normals</option>
<option value="textured">Textured</option>
<option value="smooth">Smooth</option>
<option value="flat">Flat</option>
<option value="wireframe">Wireframe</option>
</select>
</label>
 
<input type="file" id="fileInput" accept=".obj" />
<hr />
<div>
<span>Triangles: <span id="tris">00</span></span>
 
<span>Frametime: <span id="fps">00</span>ms</span>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>