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 3.0 and glsl 3.0 es shader support #515

Closed
scudly opened this issue Jan 13, 2019 · 1 comment
Closed

OpenGL ES 3.0 and glsl 3.0 es shader support #515

scudly opened this issue Jan 13, 2019 · 1 comment

Comments

@scudly
Copy link

scudly commented Jan 13, 2019

Does Processing for Android have support for OpenGL es 3 and #version 300 es shaders? If so, how do we enable it?

Desktop Java Processing seems to run version 3 shaders just fine even without adding PJOGL.profile = 3; as I’ve seen posted in a few places. Maybe it detects the version and makes that setting on its own?

Running a 3.00 ES shader on Android, however, gives Error: shader version mismatch.

@codeanticode
Copy link
Member

codeanticode commented Oct 22, 2019

@scudly With commit be27f88 I added a PGLES.version field with the same interpretation as PJOGL.profile, which it is set by default to 2 but you can manually increase to 3 if desired. This will be available in release 4.1 of the mode.

However, it seems that if the device supports ES 3, an ES 3 context is automatically created even if one requests 2, so this addition might be of not much use. Tested on one single phone thou.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants