Automatic reloading of shaders after safe
GLSL shader prototyping tool based on Eclipse IDE.
Brought to you by:
r-e-v-e-r-s
I don't know, if you have it already, but it would be great to have an option on GLSLProgramFactory to create a autoreloading GLProgram, that watches for file changes either using some eclipse mechanism or the java7 filewatcher framework (http://docs.oracle.com/javase/tutorial/essential/io/notification.html). Once a shader file in the program changes, it should recreate/relink itself and refresh the UniformControls attached to it. This would enable smooth live-editing.
I think it is a good idea. When I find some more free time I will definitely implement it. (It could take a month or more since I have a lot of duties lately).
No problem, I have an ugly workaround involving loading a jar from the jsx using an URLClassloader and invoking a static methods that spawns a file-watcher thread, giving back an object that you can poll :)
This feature is now implemented in Synthclipse 0.9.14. You might need to set:
Synthclipse.debugMode = false;
in JSX scripts because on a shader compilation error whole script might (or might not ;)) crash in Debug Mode due to some OpenGL invalid state.