Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GL_TEXTURE_2D_ARRAY in OpenGL ES/WebGL?

I have an application in mind that would greatly benefit from the use of array textures. However, I have not been able to determine whether array textures are available in the current WebGL specification and/or in OpenGL ES 2.0, on which WebGL is based.

Can anyone shed some light on the matter?

like image 966
drxzcl Avatar asked Dec 28 '22 11:12

drxzcl


2 Answers

[EDIT 7 years later]: Since I answered this the specification has changed, and now allows for GL_TEXTURE_2D_ARRAY.

like image 78
Arne Bergene Fossaa Avatar answered Jan 03 '23 13:01

Arne Bergene Fossaa


Since the answer is pretty old now, and the page keeps getting high rank in search engines, better says here that array textures are now avaliable with the webgl2 context (OpenGL ES 3.0).

You might want to check browser compatibility https://caniuse.com/#feat=webgl2

like image 24
IcanDivideBy0 Avatar answered Jan 03 '23 14:01

IcanDivideBy0