patriciogonzalezvivo / glslEditor

Simple WebGL Fragment Shader Editor

Home Page:http://editor.thebookofshaders.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import instruction in README are broken

tljstewart opened this issue · comments

Getting this ERROR Uncaught ReferenceError: GlslEditor is not defined when following README instructions

<link type="text/css" rel="stylesheet" href="https://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/glslEditor.css">
<script type="application/javascript" src="https://rawgit.com/patriciogonzalezvivo/glslEditor/gh-pages/build/glslEditor.js"></script>


<body>
    <div id="glsl_editor"></div>
</body>
<script type="text/javascript">
    const glslEditor = new GlslEditor('#glsl_editor', { 
        canvas_size: 500,
        canvas_draggable: true,
        theme: 'monokai',
        multipleBuffers: true,
        watchHash: true,
        fileDrops: true,
        menu: true
    });
</script>