-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (33 loc) · 1.13 KB
/
index.html
File metadata and controls
33 lines (33 loc) · 1.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>3D Model Viewer</title>
<link rel="stylesheet" href="/src/styles.css" />
</head>
<body>
<div id="app">
<canvas id="renderCanvas"></canvas>
<div id="dropZone" class="drop-zone">
<p>Drop a 3D model here (.glb, .gltf, .obj, .fbx)</p>
<input type="file" id="fileInput" accept=".glb,.gltf,.obj,.mtl,.fbx,.png,.jpg,.jpeg" multiple />
</div>
<div id="controls" class="controls">
<button id="resetCamera">Reset Camera (R)</button>
<label>
Environment: <input type="range" id="envIntensity" min="0" max="2" step="0.1" value="1" />
</label>
<label>
Camera Speed: <input type="range" id="cameraSpeed" min="0.1" max="3" step="0.1" value="1" />
</label>
<label>
<input type="checkbox" id="toggleGround" checked /> Ground
</label>
</div>
<div id="info" class="info"></div>
<div id="loading" class="loading hidden">Loading...</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>