-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
52 lines (40 loc) · 845 Bytes
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<style>
.button {
background-color: #db7b26;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
</head>
<body>
<center>
<h1>GLSL2WGSL</h1>
<h2>Convert glsl code to wgsl</h2>
<p>Paste glsl code here:</p>
<!-- <p id="demo"></p> -->
<br>
<!-- <textarea id="glslarea" name="glsl-" rows="10" cols="80">float b = 1; </textarea> -->
<textarea id="glslarea" name="glsl" rows="15" cols="80">
float yu = 1;
</textarea>
<br>
<br>
<button onclick="dum()" class="button">Convert!</button>
<br>
<br>
<textarea id="wgslarea" name="wlsl-" rows="15" cols="80"> </textarea>
</center>
<br>
<script src="/main.js" type="module"></script>
</body>
</html>