How to create WebGL 2 renderer in iOS?

Tags: , ,



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?

Answer

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



Source: stackoverflow