thebookofshaders/edit.html
2016-02-08 09:40:43 -05:00

38 lines
1.0 KiB
HTML

<!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,
theme: 'monokai',
multipleBuffers: true,
watchHash: true,
fileDrops: true,
menu: true
});
</script>
</html>