0.0.0-dev.3 ⢠Published 3 years ago
z-glsl v0.0.0-dev.3
š¦ z-glsl
glsl preprocessor cli
š use imports in your glsl: #import path/to/file.glsl
š§ now you can organize your code
š files with the .z.glsl extension get compiled
š¤·āāļø that's all for now
š free and open source, just for you
how to use z-glsl:
- write
.z.glslfiles with imports like#import path/to/file.glsl- you can use
@import path/to/file.glslinstead if you like - the paths are relative from the file that has the import statement
- you can have a semicolon at the end of the import line
- you can use
- run
npx z-glsl source dist, this will compile your z-glsl files- replace
sourcewith the directory that has your source files - replace
distwith the build directory that glsl files will be saved to
- replace
- add
--verboseto see more information - add
--watchto start a watch routine - add
--pollto use file-polling mode for the watch routine