-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (34 loc) · 1.08 KB
/
Copy pathindex.html
File metadata and controls
39 lines (34 loc) · 1.08 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 lang="en">
<head>
<meta charset="UTF-8">
<title>Normal Map Sampler</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Import options -->
<!-- Load from computer -->
<input type="file" id="fileInput" accept="image/*">
<!-- Load from URL -->
<div id="urlLoader">
<input type="text" id="urlInput" placeholder="Paste image URL here">
<button id="loadUrlBtn">Load from URL</button>
</div>
<!-- Drag & Drop zone -->
<div id="dropZone">Drag & Drop image here or paste (Ctrl+V)</div>
<!-- Output data -->
<div id="outputRow1">
<label><input type="checkbox" id="flipGreen"> Switch green channel</label>
<input type="text" id="outputField" readonly value="Click on the texture to sample a vector.">
<div id="colorBlock"></div>
</div>
<div id="outputRow2">
<button id="copyUnity">Copy for Unity</button>
<button id="copyUnreal">Copy for Unreal</button>
</div>
<!-- Image canvas -->
<canvas id="canvas"></canvas>
<!-- Load main script as a module -->
<script type="module" src="script.js"></script>
</body>
</html>