I would like to be able to use some of this, especially the DistortionShader, on the campaign map, rather than only in the combat engine. I have two main questions.
- Is that a non-starter? I've been programming in Java/Kotlin for 6-7 years, but have never worked with lower-level graphics engine stuff, nor OpenGL. From poking around DistortionShader, it seems like it only uses the CombatEngine as a way to store the list of Distortion objects. If that list were extracted out, could this (especially drawDistortion) work on the campaign layer, or am I missing something?
- Say I did fork GraphicsLib and got this working with an API and Javadocs up to standards. Would a PR be considered? I see in the license that if I did do this work, I wouldn't be allowed to include it with my own mod, as that would be distributing a derivation (to say nothing of the issues of having two different GraphicsLib jars, ha)
My goal is to be able to create some sort of cool effect for when a player uses a gate in Gates Awakened. Not feeling up to learning OpenGL for this, I turned to MagicLib and GraphicsLib, but found that they are both in-combat-only.