thebookofshaders/edit.html
Patricio Gonzalez Vivo 9955999454 fixing editor
2016-01-13 20:24:58 -05:00

33 lines
947 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>GLSL Editor</title>
<!-- 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://cdn.rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/css/main.css">
<script type="application/javascript" src="https://cdn.rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/js/glslEditor.js"></script>
<script type="text/javascript">
window.glslEditor = new GlslEditor('#glsl_editor');
window.addEventListener("hashchange", function () {
window.glslEditor.chechHash()
}, false);
</script>
</html>