Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL ES 2.0 support #187

Merged
merged 6 commits into from Feb 15, 2020
Merged

OpenGL ES 2.0 support #187

merged 6 commits into from Feb 15, 2020

Conversation

@Akaricchi
Copy link
Member

Akaricchi commented Feb 15, 2020

This mostly completes the gles20 backend. "Mostly" because it still requires several extensions to function correctly. Tested with ANGLE.

Some shaders had to be reworked to be translatable into legacy ESSL. A minimal legacy compatibility layer for shaders has been added in lib/legacy_compat.glslh, to be extended as needed. textureLod, textureGrad are not supported, even with the relevant extensions (remapped to plain texture). gl_InstanceID is not supported, which means specialized laser shaders won't work. The generic laser shader has been updated to not rely on gl_InstanceID. Some shaders have also been slightly optimized in the process.

A minor new feature has been added for shaders. If a shader contains uniform declarations such as:

uniform sampler2D mysampler;
uniform vec2 mysampler_SIZE;

then mysampler_SIZE will be automatically updated with the dimensions of the texture attached attached to the sampler.

Akaricchi added 6 commits Feb 12, 2020
@Akaricchi Akaricchi added this to the v1.4 milestone Feb 15, 2020
@Akaricchi Akaricchi merged commit 7474ff3 into master Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.