(小游戏开发问题)在微信开发者工具上运行正常,但是手机端报错,附源码,求大神!
var canvas = wx.createCanvas();
var height = canvas.height;
var width = canvas.width;
var aspect = width / height;
var scene = new THREE.Scene();
var context = canvas.getContext(‘webgl’);
var parameters={};
parameters.context = context;
parameters.canvas = canvas;
(报错行)var renderer = new THREE.WebGLRenderer(parameters);