-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (93 loc) · 3.06 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
95
96
<html>
<head>
<link rel="preload" href="OtomanopeeOne-Regular.woff2" as="font" type="font/woff2" crossorigin>
<style>
body{
background-color:rgb(17, 17, 17);
}
.cont{
display: flex;
position: absolute;
top:0px;
left:0px;
}
.tex{
display:flex;
flex-direction:column;
}
@font-face {
font-family: 'Otomanopee One';
src: url('OtomanopeeOne-Regular.woff2') format('woff2'),
url('OtomanopeeOne-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
.area{
color:rgb(235, 233, 233);
font-family: 'Otomanopee One';
font-weight: normal;
font-style: normal;
}
h1{
font-size: 60;
}
p{
padding-right:30px;
font-family: 'Arial';
}
a.button1{
display:inline-block;
padding:0.35em 1.2em;
border:0.1em solid #FFFFFF;
margin:0 0.3em 0.3em 0;
border-radius:0.12em;
box-sizing: border-box;
text-decoration:none;
font-family:'Roboto',sans-serif;
font-weight:300;
color:#FFFFFF;
text-align:center;
transition: all 0.2s;
}
a.button1:hover{
color:#000000;
background-color:#FFFFFF;
}
@media all and (max-width:30em){
a.button1{
display:block;
margin:0.4em auto;
}
}
</style>
</head>
<body>
<div class="cont">
<center>
<div id="marching">
<div class="area">
<h1>Ray Marching</h1>
<p class="firstLine">An example of Ray Marching along with rendering with a MatCap.</p>
<p>Move your mouse over it and give it a whirl!</p>
</div>
</div>
<div id="water">
<div class="area">
<h1>Liquid Simulation</h1>
<p class="firstLine">Water simulated in real time, which boxes that react naturally.</p>
<p>You can also pick up the boxes by clicking on them.</p>
<p>Make waves with your mouse cursor.</p>
<a id="switch" class="button1">press this to more easily see the simulation</a>
</div>
</div>
<div class="area">
<p>Both of these demos were made with THREE.js and GLSL</p>
<p>Michael Tchistopolskii - [email protected]</p>
</div>
</center>
</div>
<script type="module" src="marching/marchingwater.js"></script>
<script type="module" src="water/water-with-boxes.js"></script>
</body>
</html>