V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  czywind  ›  全部回复第 1 页 / 共 1 页
回复总数  3
另外不建议直接改 three.js 的
document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
后续 three.js 更新又要改一次比较麻烦。
var context = canvas.getContext('webgl');
var renderer = new THREE.WebGLRenderer(context);
new THREE.WebGLRenderer 方法传入上下文参数,一般使用这样的方式创建 renderer 是不会调用到
document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' );
回复不了是什么原因
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5017 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 08:31 · PVG 16:31 · LAX 01:31 · JFK 04:31
Developed with CodeLauncher
♥ Do have faith in what you're doing.