-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (80 loc) · 2.61 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - glTF loader</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
#product-canvas {
width: 300px;
height: 300px;
margin: auto;
margin-top: 150px;
border-style: solid;
}
.button {
position: relative;
bottom: 5px;
left: 5px;
background-color: blue;
padding: 15px;
border: 1px solid;
z-index: 20;
}
#testButton {
position: fixed;
bottom: 20px;
right: 20px;
padding: 8px;
color: #fff;
background-color: #555;
opacity: 0.7;
}
</style>
</head>
<body>
<!-- <div>
<canvas id="product-canvas"></canvas>
</div> -->
<div id='product-canvas'>
</div>
<script src="js/three.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/Init.js"></script>
<script src="js/dat.gui.min.js"></script>
<script src="js/MTLLoader.js"></script>
<script src="js/OBJLoader.js"></script>
<script src="js/EffectComposer.js"></script>
<script src="js/RenderPass.js"></script>
<script src="js/ShaderPass.js"></script>
<script src="js/SAOShader.js"></script>
<script src="js/CopyShader.js"></script>
<script src="js/SSAOShader.js"></script>
<script src="js/SSAOPass.js"></script>
<script src="js/SSAARenderPass.js"></script>
<script src="js/TAARenderPass.js"></script>
<script src="js/Detector.js"></script>
<!-- <script src="js/WebGL.js"></script> -->
<!-- <script src="dist/threesixty_initialize.js"></script> -->
<script src="js/Stats.js"></script>
<!-- <script src="dist/built.js"></script> -->
<script>
var make ={
"fab": "splits2/onFire_f.obj",
"shiny":"splits2/onFire_s.obj",
"totalFileSize":20207936,
"diffuse": "splits2/_KT4_Fire_diffuse_F.jpg",
"rough": "splits2/_KT4_Fire_Rough_F.jpg",
"normal": "splits2/_KT4_Fire_NML_F.jpg",
"config":"splits2/config.json"
}
if (Detector.webgl) {
loadModelOntoPage(make);
} else {
var warning = Detector.getWebGrLErrorMessage();
document.getElementById('canvas').appendChild(warning);
}
</script>
<a onClick="causeHop()" id="testButton" href="#" title="TestButton">Test Animation Interaction</a>
</body>
</html>