-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshaders.html
More file actions
67 lines (55 loc) · 1.8 KB
/
shaders.html
File metadata and controls
67 lines (55 loc) · 1.8 KB
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>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" rel="stylesheet" href="styles/main.css">
<title>WebGL Test</title>
</head>
<body>
<div
id="sanctuary"
class="glcontainer"
style="margin: 25px 25px; width: 500px; height: 500px"
data-shader-src="shaders/sanctuary.frag"
onmouseenter="ShaderPreview.getById('sanctuary').play()"
onmouseleave="ShaderPreview.getById('sanctuary').pause()">
</div>
<div
id="nightmare"
class="glcontainer"
style="margin: 25px 25px; width: 500px; height: 500px"
data-shader-src="shaders/nightmare.frag"
onmouseenter="ShaderPreview.getById('nightmare').play()"
onmouseleave="ShaderPreview.getById('nightmare').pause()">
</div>
<div
id="space"
class="glcontainer"
style="margin: 25px 25px; width: 500px; height: 500px"
data-shader-src="shaders/space.frag"
onmouseenter="ShaderPreview.getById('space').play()"
onmouseleave="ShaderPreview.getById('space').pause()">
</div>
<div
id="timeTripping"
class="glcontainer"
style="margin: 25px 25px; width: 500px; height: 500px"
data-shader-src="shaders/timeTripping.frag"
data-uniform-f-inverse-mode-contrast="0"
onmouseenter="ShaderPreview.getById('timeTripping').play()"
onmouseleave="ShaderPreview.getById('timeTripping').pause()">
</div>
<div
id="mousetest"
class="glcontainer"
style="margin: 25px 25px; width: 500px; height: 500px"
data-shader-use-mouse-uniforms
data-shader-src="shaders/mousetest.frag"
data-uniform-f-inverse-mode-contrast="0"
onmouseenter="ShaderPreview.getById('mousetest').play()"
onmouseleave="ShaderPreview.getById('mousetest').pause()">
</div>
<script src="scripts/webgl.js"></script>
</body>
</html>