OpenFL has support for GLSL shaders and can add them easily at compile time. However, there appears to be a bunch of processing done (including a lot of file replacement and a compilation process) before the shader can be used.
If this processing could be abstracted to a utility function, this processing could be done during the pre-caching step, and this would allow mods to supply a .frag or .vert file that the game would include, without having to modify the code.
OpenFL has support for GLSL shaders and can add them easily at compile time. However, there appears to be a bunch of processing done (including a lot of file replacement and a compilation process) before the shader can be used.
If this processing could be abstracted to a utility function, this processing could be done during the pre-caching step, and this would allow mods to supply a
.frag
or.vert
file that the game would include, without having to modify the code.