-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
67 lines (46 loc) · 2.57 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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script type='text/javascript'">
var startTime, endTime;
startTime = new Date();
</script>
<script type='text/javascript' src="./js/jquery-1.10.2.min.js"></script>
<!--script type='text/javascript' src="./js/jquery-1.10.2.js"></script-->
<script type='text/javascript' src="./js/Detector.js"></script>
<script type="text/javascript" src="./js/three.js"></script>
<script type='text/javascript' src="./js/TrackballControls2.js"></script>
<script type='text/javascript' src='./js/tween.js'></script>
<script type='text/javascript' src='./js/RTT_setup.js'></script>
<script type="text/javascript" src="./js/dat.gui.min.js"></script>
<script type="text/javascript" src="./js/ShaderLoader.min.js"></script>
<!--script type="text/javascript" src="./js/ShaderLoader.js"></script-->
<link rel="stylesheet" type="text/css" href="./globe.css">
</head>
<body>
<span style="font-family:Sans-Serif">Github repo: <a href="https://github.com/meetar/globe-terrain">https://github.com/meetar/globe-terrain</a></span>
<div id="globecontainer"></div>
<!-- IMAGE PROCESSING SHADERS -->
<!-- Render-to-texture vertex shader -->
<script data-src="./shaders/vs_rt.js" data-name="vs_rt" type="x-shader/x-vertex"></script>
<!-- RTT erosion fragment shader -->
<script data-src="./shaders/fs_erode.js" data-name="fs_erode" type="x-shader/x-fragment"></script>
<!-- RTT dilation fragment shader -->
<script data-src="./shaders/fs_dilate.js" data-name="fs_dilate" type="x-shader/x-fragment"></script>
<!-- this shader outputs as its final fragment the brightest value in the input
texture - the result is used by the fs_rtt shader to normalize the input texture -->
<!-- maximum-finding fragment shader -->
<script data-src="./shaders/fs_maximum.js" data-name="fs_maximum" type="x-shader/x-fragment"></script>
<!-- final RTT output shader - takes as input the result of the
erode/dilate shaders and the normalization shader -->
<!-- image normalization fragment shader -->
<script data-src="./shaders/fs_rtt.js" data-name="fs_rtt" type="x-shader/x-fragment"></script>
<!-- MAIN SHADERS -->
<!-- ----- VERTEX SHADER ----- -->
<script data-src="./shaders/vs_main.js" data-name="vs_main" type="x-shader/x-vertex"></script>
<!-- ----- FRAGMENT SHADER ----- -->
<script data-src="./shaders/fs_main.js" data-name="fs_main" type="x-shader/x-fragment"></script>
<!-- ----- MAIN THREE.JS CODE ----- -->
<script type='text/javascript' src='./js/globe_demo01.js'></script>
</body>
</html>