Hello everybody. I was trying to adapt a panorama viewer made with Three.js in my Ionic2 android app. I need a WebGL renderer but the function THREE.WebGLRenderer() unfortunately returns null.
So i tried to investigate and i did these test:
var canvas = document.createElement( 'canvas' ); console.log("TEST 2d : " + canvas.getContext('2d')) // returns the context console.log("TEST 3d : " + canvas.getContext('experimental-webgl')) // returns null
Is somehow possible to have a WebGLRenderer in Ionic2? Notice that everything works well when I test the project on Firefox, but it doesn’t work when I test it on Android.