-
Notifications
You must be signed in to change notification settings - Fork 1
Tool for taking a folder of .glsl files and converting it to something you can include in your projects
License
andersmalm/glslp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
GLSLP ( OpenGL Shader Helper ) Copyright (c) 2016 Anders Malm - Ekoli / Odious ^ S/N ^ Censor <andersmn@gmail.com> What? This is a small tool for converting .glsl files into a .cpp and a .h file which can be included and used in your projects. It removes unnecessary whitespaces and strips out the comments. How? If you have the binary, just run "glslp.exe -dir <dir with shaders>" Each shader will be a const char* named after file name in the shader namespace. example : foobar.glsl will become const char* shader::foobar_glsl In the folder with the shaders two new files will be generated, shaders.cpp and shaders.h. Just build one and include the other.. and you will have a most excellent day coding! Disclaimer: I have tried it on a lot of my own shaders without any problems, but I can't promise it will work everywhere.
About
Tool for taking a folder of .glsl files and converting it to something you can include in your projects
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published