thebookofshaders/edit.html

38 lines
1.0 KiB
HTML
Raw Normal View History

2015-03-15 15:21:47 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2016-01-19 16:23:55 +00:00
<title>GLSL Editor</title>
2016-02-08 14:40:43 +00:00
<link href="/favicon.gif" rel="shortcut icon"/>
2015-03-15 15:21:47 +00:00
<!-- GLSL Canvas -->
2015-07-14 14:34:43 +00:00
<script type="text/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslCanvas/master/build/GlslCanvas.min.js"></script>
2015-03-15 15:21:47 +00:00
<style>
body {
2016-01-19 16:23:55 +00:00
height: 100%;
margin: 0;
2015-03-15 15:21:47 +00:00
background: #272822;
}
2016-01-19 16:23:55 +00:00
#glsl_editor {
height: 100%;
2015-03-15 15:21:47 +00:00
}
</style>
</head>
<body>
2016-01-19 16:23:55 +00:00
<div id="glsl_editor"></div>
2016-01-11 00:11:56 +00:00
</body>
2016-01-19 16:23:55 +00:00
<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>
2016-01-19 16:23:55 +00:00
<script type="text/javascript">
2016-01-16 12:46:46 +00:00
window.glslEditor = new GlslEditor('#glsl_editor', {
2016-02-02 16:44:12 +00:00
canvas_size: 500,
2016-01-16 12:46:46 +00:00
theme: 'monokai',
multipleBuffers: true,
watchHash: true,
fileDrops: true,
2016-01-16 12:46:46 +00:00
menu: true
});
2016-01-19 16:23:55 +00:00
</script>
2016-02-02 16:44:12 +00:00
</html>