(小游戏开发问题)在微信开发者工具上运行正常,但是手机端报错,附源码,求大神!
发布于 5 年前 作者 maoxiuying 1296 次浏览 来自 问答

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);

回到顶部