我正在尝试使用我的视频画布纹理作为Three.js中材质的遮罩,但它不起作用。这是我的代码:
video = document.getElementById( 'video' );
texture = new THREE.Texture( video );
var parameters = { color: 0xffffff, mapAlpha: texture },
material = new THREE.MeshLambertMaterial( parameters );
material.transparent = true;