Created
January 18, 2013 01:22
-
-
Save micahpearlman/4561519 to your computer and use it in GitHub Desktop.
Compile GLSL shaders into a C include file
This file contains 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
#NOTE: because xxd doesn't emit a \0 null character we use sed to add that extra bit | |
#see: http://gamesfromwithin.com/quick-tip-working-with-shaders-on-ios | |
cd ${INPUT_FILE_DIR} | |
xxd -i ${INPUT_FILE_NAME} | sed s/}\;/,0x00}\;/ > ${INPUT_FILE_PATH}.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment