OpenGL ES 3.0 Shader Support

Can I compile shaders for ES 3.0 rather than the default 2.0?

I have read that adding “#version 300 es” to a shader will force 3.0 but I’m having no luck…

M

I guess you’re interested in using some specific GLSL ES 3.00 features? I don’t see much benefit of using just GLSL without migrating infrastructure to OpenGL ES 3 APIs. That would also be problematic, since we’re supporting some quite popular devices which doesn’t have ES 3 support (iPhone 5, for example).

Hi vlads

Looking at the docs ( and I could be totally wrong ), I thought you could just have the shaders run / compile in ES3 without breaking the rest of Corona.

Basically texture lookups are a lot quicker in ES3 compared to older versions. That alone means that it would make some projects viable.

Given the new render texture canvas you provided yesterday, which works well, this is less of a necessity now.

I can achieve 60fps on an iPhone 5 doing lookups on a few 1024 x 1024 images.

Hi.

If you are just after a feature here or there, you might get lucky looking in the extensions registry. Calling system.getInfo(“GL_EXTENSIONS”) will give you a big string-of-strings and you can string.find() what you want out of that.

That said, they do tend to require some setup on the native side of things.

I guess you’re interested in using some specific GLSL ES 3.00 features? I don’t see much benefit of using just GLSL without migrating infrastructure to OpenGL ES 3 APIs. That would also be problematic, since we’re supporting some quite popular devices which doesn’t have ES 3 support (iPhone 5, for example).

Hi vlads

Looking at the docs ( and I could be totally wrong ), I thought you could just have the shaders run / compile in ES3 without breaking the rest of Corona.

Basically texture lookups are a lot quicker in ES3 compared to older versions. That alone means that it would make some projects viable.

Given the new render texture canvas you provided yesterday, which works well, this is less of a necessity now.

I can achieve 60fps on an iPhone 5 doing lookups on a few 1024 x 1024 images.

Hi.

If you are just after a feature here or there, you might get lucky looking in the extensions registry. Calling system.getInfo(“GL_EXTENSIONS”) will give you a big string-of-strings and you can string.find() what you want out of that.

That said, they do tend to require some setup on the native side of things.