forked from patriciogonzalezvivo/glslEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (45 loc) · 1.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!--
* @Author: hhxy
* @Date: 2022-04-13 23:54:06
* @LastEditors: hhxy
* @LastEditTime: 2022-04-24 01:06:13
* @Description:
* @Optimization:
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GLSL Editor</title>
<!-- build:remove -->
<!-- Connect to server process -->
<!-- <script>require('electron-connect').client.create()</script> -->
<!-- end:build -->
<link type="text/css" rel="stylesheet" href="./build/glslEditor.css">
<!-- <script type="application/javascript" src="../build/glslEditor.js"></script> -->
</head>
<style>
html, body {
background-color: rgb(39, 40, 34);
height: 100%;
margin: 0;
padding: 0;
width: 100%;
}
</style>
<body>
<div id="glsl_editor"></div>
</body>
<script type="module">
import GlslEditor from './build/glslEditor.es.js'
window.GlslEditor =GlslEditor
window.Editor = new GlslEditor('#glsl_editor', {
canvas_size: 500,
theme: 'monokai',
multipleBuffers: true,
watchHash: true,
fileDrops: true,
menu: true
});
</script>
</html>