Angle GLES backend for desktop (Work in progress) #2585
+1,152
−135
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an experimental ANGLE backend for jMonkeyEngine.
It is implemented by extending the LWJGL3 backend to provide a GLES renderer that links against
libEGLandlibGLESv2built from ANGLE here: https://github.com/riccardobl/angle-build.The idea is to target the GLES platform provided by ANGLE, which then translates API calls to the best graphics API available on the host platform. This lets ANGLE handle broken or deprecated drivers and implementation-specific quirks, rather than us. Additionally, it helps unify desktop and Android code paths.
I tested this on fedora 43 and managed to get the tests to run, with the following issues:
Vulkan backend doesn't start
If i try to force the vulkan backend on angle
( "ANGLE_DEFAULT_PLATFORM": "vulkan" in launcher envs), it fails to start with error:
Still unsure why. If ANGLE_DEFAULT_PLATFORM is not specified, angle falls back to the gl backend and everything works.
Gamma correction issue
Gamma correction is not applied to the default framebuffer buffer, i suspect it needs to be handled manually, like in webgl.