Skip to content
Advertisement

Tag: webgl2

Using mat4 attribute in WebGL2

I am trying to pass a 4×4 matrix as an attribute to WebGL2 vertex shader. After following closely this SO answer, I am stuck with wrapping my head around why I can’t successfully render and get a glDrawArrays: attempt to access out of range vertices in attribute 0 error in my console. It is my understanding that mat4 is represented

How to create WebGL 2 renderer in iOS?

I am trying to create a THREE.WebGLRenderer, but it seems that on iOS, it will only create a WebGL 1. Here is my code for creating the renderer and printing the capability: Is there a way to create WebGL2 renderer on iOS? Answer Browsers on iOS all use WebKit which does not yet support WebGL 2.

Advertisement