我尝试了this jsfiddle并且无法让背景画布达到窗口的全尺寸。我试过video.width = window.innerWidth
但没有运气。可以解释一下吗?
更新:
我认为问题在于这个代码(如果是这种情况,我认为标题应该是"给PlaneGeometry提供window.innerWindth, window.innerHeight
&#34; <的维度/ p>
//the geometry on which the movie will be displayed;
//movie image will be scaled to fit these dimensions.
movieGeometry = new THREE.PlaneGeometry( 2,2,0 );
movieScreen = new THREE.Mesh( movieGeometry, movieMaterial );
// movieScreen.position.set(0,50,0);
movieScreen.material.depthTest = false;
movieScreen.material.depthWrite = false
当我更改PlaneGeometry的参数时,将缩放影片图像以适合这些尺寸。问题是我无法找到合适的尺寸。