forked from Abar23/WebGL-Ray-Marcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (75 loc) · 2.87 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<html>
<head>
<title>3D Fractals.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background:#777;
padding:0;
margin:0;
font-weight: bold;
overflow:hidden;
}
#info {
position: absolute;
top: 0px; width: 100%;
color: #353535;
padding: 5px;
font-family:Monospace;
font-size:13px;
text-align:center;
z-index:1000;
}
.head {position: fixed; font-size: 25px}
.dg.main .close-button {
background-color: rgb(255, 0, 255);
}
.ui {
position : fixed;
display: inline-block;
margin: 0.5em 0.5em 0.5em 0.5em;
border-radius:0.12em;
border: 0.1em solid #FFFFFF;
color: white;
background: transparent;
padding: 0.35em 1.2em;
text-align: center;
box-sizing: border-box;
text-decoration:none;
font-family:'Roboto',sans-serif;
font-weight:300;
font-size: 0.9em;
cursor: pointer;
}
.ui:hover {
color:#000000;
background-color: #FFFFFF;
}
</style>
</head>
<body onload = "start();">
<canvas id="game-surface" style="width: 100vw; height: 100vh; display: block;">
Your browser does not support HTML5
</canvas>
<script id="vertShader" type="x-shader/x-vertex" src="./Shaders/vertexShader.glsl"></script>
<!-- Change out the file path below to the desired fragment shader -->
<script id="fragShader" type="x-shader/x-fragment" src="./Shaders/gyroid_distance_gradient.glsl"></script>
<script id="fragShader2" type="x-shader/x-fragment" src="./Shaders/PurpleGlowMandelbulb.glsl"></script>
<script id="fragShader3" type="x-shader/x-fragment" src="./Shaders/Spheres.glsl"></script>
<script id="fragShader4" type="x-shader/x-fragment" src="./Shaders/clouded.glsl"></script>
<script id="gyroidIndexed" type="x-shader/x-fragment" src="./Shaders/gyroid_indexed_colors.glsl"></script>
<script id="schwarzDPPIndexed" type="x-shader/x-fragment" src="./Shaders/schwarz_d_p_p_indexed.glsl"></script>
<script id="schwarzDPPGradient" type="x-shader/x-fragment" src="./Shaders/schwarz_d_p_p_gradient.glsl"></script>
<script id="schwarzDPPSmooth" type="x-shader/x-fragment" src="./Shaders/schwarz_d_p_p.glsl"></script>
<script id="gyroidSmooth" type="x-shader/x-fragment" src="./Shaders/gyroid.glsl"></script>
<script id="brickShader" type="x-shader/x-fragment" src="./Shaders/brick_shader.glsl"></script>
<script type="text/javascript" src="./Mesh.js"></script>
<script type="text/javascript" src="./Shader.js"></script>
<script type="text/javascript" src="./Timer.js"></script>
<script src="./dat.gui.js"></script>
<script src="./canvastotiff.min.js"></script>
<script type="text/javascript" src="./main.js"></script>
<button style="right: 45%; bottom:0px;" id = "save" class="ui">EXPORT TO TIFF</button>
</body>
</html>