EliteMasterEric / EnigmaEngine

A fork of FNF's Kade Engine that combines its QoL features with true mod support and new gameplay enhancements
https://enigmaengine.github.io/
Other
12 stars 1 forks source link

Enhancement: Runtime Shader Loading #56

Open EliteMasterEric opened 2 years ago

EliteMasterEric commented 2 years ago

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.