Issue
I'm making a program for Android using opengl es and I'd like to organize my project by keeping my glsl shader code as separate source files along with the java source code.
I realized, however, that for Android I need to store these as string resources, which are usually stored and managed in the strings.xml resource file, but I would very much like to keep them separate.
Any pointers on how to do this without directly embedding various glsl shader codes into ...\main\res\values\strings.xml?
Solution
If you are working with Android Studio, there is even .glsl support for editing shaders. Just create a file and add .glsl as the extension, Android Studio will offer you to download a plugin for editing shaders. You can only place your shaders in your res/raw folder.
Answered By - andras
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.