-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (54 loc) · 2.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Zen+Loop:ital@0;1&display=swap" rel="stylesheet">
<link rel="stylesheet" href="index.css">
</head>
<body>
<script src="perlin.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.7/dat.gui.min.js" integrity="sha512-LF8ZB1iTwi4Qvkm4pekHG4a437Y9Af5ZuwbnW4GTbAWQeR2E4KW8WF+xH8b9psevV7wIlDMx1MH9YfPqgKhA/Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<h1 style="left: 100px;top: 50px;z-index: 1;font-family: 'Zen Loop', cursive; font-size: 75px;letter-spacing: 10px;font-style: italic;width: max-content;color: #abb39f;">Hi,I'm <span style="text-decoration: underline;text-decoration-thickness: 3.7px;margin-left: 10px;"> Sanidhya</span></h1>
<h2 style="left: 100px;top: 170px;z-index: 1;font-family: 'Zen Loop', cursive;font-size: x-large;color: #8a7d7d;">•<span style="letter-spacing: 12px;width: max-content;margin-left: 19px;">A Web Developer</span></h2>
<!-- POINT SHADER MATERIAL -->
<script id="pointVertexShader" type="x-shader/x-vertex">
void main(){
gl_Position = projectionMatrix * viewMatrix * modelMatrix * vec4(position,1.0);
gl_PointSize = 4.0;
}
</script>
<script id="pointFragmentShader" type="x-shader/x-vertex">
void main(){
float strength = distance(gl_PointCoord,vec2(0.5));
strength = step(0.5,strength);
strength = 1.0 - strength;
gl_FragColor = vec4(vec3(strength),1.0);
}
</script>
<!-- USER CURSOR SHADER MATERIAL -->
<script id="cursorVertexShader" type="x-shader/x-vertex">
void main(){
gl_Position = projectionMatrix * viewMatrix * modelMatrix * vec4(position,1.0);
gl_PointSize = 250.0;
}
</script>
<script id="cursorFragmentShader" type="x-shader/x-vertex">
uniform float uTime;
uniform vec3 uColor1;
uniform vec3 uColor2;
void main(){
float strength = distance(gl_PointCoord,vec2(0.5));
strength = 1.0 - strength;
strength = pow(strength,10.0);
vec3 color = mix(uColor1,uColor2,uTime);
gl_FragColor = vec4(color,strength);
}
</script>
<script defer type="module" src="index.js"></script>
</body>
</html>