Skip to content
Advertisement

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:

var renderer = new THREE.WebGLRenderer({antialias: false});
console.log("isWebGL2: "+renderer.capabilities.isWebGL2);

Is there a way to create WebGL2 renderer on iOS?

Advertisement

Answer

Browsers on iOS all use WebKit which does not yet support WebGL 2.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement