Last active
April 8, 2018 15:55
-
-
Save hosseinzoda/8d2622794e2162c9a739e90a4b8b050c to your computer and use it in GitHub Desktop.
Write static strings as variable, e.x glsl shaders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file2var does generate code to have files as strings in languages like javascript, c | |
# https://github.com/aminbros/file2var | |
file2var txt2cstr -p js -o ../src/programs.js *.glsl | |
# output file is js file containing all .glsl files named with their filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment