-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (39 loc) · 1.46 KB
/
index.html
File metadata and controls
39 lines (39 loc) · 1.46 KB
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
38
39
<!DOCTYPE html>
<html>
<head>
<title>
JS 3D Graphics Pipeline
</title>
</head>
<body>
<canvas id="canvas" width="100%" height="100%"></canvas>
<input type="file" name="objFile" id="objFile">
<div class="settings">
<label>X-position</label>
<input type="range" min="-10" max="10", value="0" class="slider" id="pos_x">
<br>
<label>Y-position</label>
<input type="range" min="-10" max="10", value="0" class="slider" id="pos_y">
<br>
<label>Z-position</label>
<input type="range" min="1" max="10", value="2" class="slider" id="pos_z">
<br>
<label>Scale</label>
<input type="range" min="1" max="1000", value="100" class="slider" id="scale">
<br>
<label>Rotation (deg/s)</label>
<input type="range" min="0" max="720", value="50" class="slider" id="rotation">
</div>
<script src="bresenham.js"></script>
<script src="matrix4.js"></script>
<script src="vector4.js"></script>
<script src="vector3.js"></script>
<script src="vector2.js"></script>
<script src="shader.js"></script>
<script src="model.js"></script>
<script src="color.js"></script>
<script src="objloader.js"></script>
<script src="renderer.js"></script>
<script src="index.js"></script>
</body>
</html>