renderer.autoClear = false; //同时显示,不要自动清除
var material = new THREE.SpriteMaterial({
map: new THREE.Texture(drawingCanvas),
transparent: true, opacity: 0.5
});
material.map.needsUpdate = true; //map是一个canvas,变量初始化先执行,canvas的绘制后执行,需要通知threejs更新
renderer.autoClear = false; //同时显示,不要自动清除
var material = new THREE.SpriteMaterial({
map: new THREE.Texture(drawingCanvas),
transparent: true, opacity: 0.5
});
material.map.needsUpdate = true; //map是一个canvas,变量初始化先执行,canvas的绘制后执行,需要通知threejs更新
本文标题:透视和正交同时显示
本文链接:https://www.haomeiwen.com/subject/avmrvftx.html
网友评论