mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-03 23:15:23 +00:00
37 lines
1012 B
HTML
37 lines
1012 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://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', {
|
|
viewSize: 500,
|
|
theme: 'monokai',
|
|
multipleBuffers: true,
|
|
watchHash: true,
|
|
fileDrops: true,
|
|
menu: true
|
|
});
|
|
</script>
|
|
</html> |