0.0.0-dev.3 • Published 3 years ago

z-glsl v0.0.0-dev.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

šŸ¦“ 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.glsl files with imports like #import path/to/file.glsl
    • you can use @import path/to/file.glsl instead 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
  • run npx z-glsl source dist, this will compile your z-glsl files
    • replace source with the directory that has your source files
    • replace dist with the build directory that glsl files will be saved to
  • add --verbose to see more information
  • add --watch to start a watch routine
  • add --poll to use file-polling mode for the watch routine