UNPKG
glsl-transpiler
Version:
latest (3.0.3)
3.0.3
3.0.2
3.0.1
3.0.0
2.0.2
2.0.1
2.0.0
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.1
1.6.0
1.5.11
1.5.10
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.0
1.0.0
Transpile GLSL to JS
github.com/stackgl/glsl-transpiler
stackgl/glsl-transpiler
glsl-transpiler
/
index.js
18 lines
(12 loc)
•
243 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** * Transform glsl to js. * *
@module
glsl
-transpiler */
import
GLSL
from
'./lib/index.js'
;
//static bindings
export
function
compile
(
str, opt
) {
return
GLSL
(opt).
compile
(str); };
export
*
from
'./stream.js'
;
export
default
GLSL