Skip to content

benevolent-games/z-glsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦓 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