-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (32 loc) · 888 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My first three.js app</title>
<style>
body { margin: 0; }
</style>
</head>
<body>
<!-- <script type="x-shader/x-vertex" id="vertexShader">
void main() {
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}
</script>
<script type="x-shader/x-fragment" id="fragmentShader">
uniform float time;
uniform vec2 resolution;
void main() {
vec2 uv = (gl_FragCoord.xy - 0.5 * resolution.xy) / min(resolution.y, resolution.x);
float d = length(uv);
vec3 color = vec3(0.0);
if (d > 0.3 && d < 0.4) {
color = vec3(0.0, 1.0, 0.0);
}
gl_FragColor = vec4(color, 1.0);
}
</script> -->
<!-- <script src="https://threejs.org/build/three.js"></script> -->
<script type="module" src="src/sattelites2.js"></script>
</body>
</html>