forked from kynd/thebookofshaders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.html
37 lines (35 loc) · 1.04 KB
/
edit.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>GLSL Editor</title>
<link href="/favicon.gif" rel="shortcut icon"/>
<!-- GLSL Canvas -->
<script type="text/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslCanvas/master/build/GlslCanvas.min.js"></script>
<style>
body {
height: 100%;
margin: 0;
background: #272822;
}
#glsl_editor {
height: 100%;
}
</style>
</head>
<body>
<div id="glsl_editor"></div>
</body>
<link type="text/css" rel="stylesheet" href="https://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/css/main.css">
<script type="application/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/js/glslEditor.js"></script>
<script type="text/javascript">
window.glslEditor = new GlslEditor('#glsl_editor', {
canvas_size: 500,
canvas_draggable: true,
multipleBuffers: true,
watchHash: true,
fileDrops: true,
menu: true
});
</script>
</html>