未验证 提交 d4d51ce6 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #13470 from mrdoob/videotexture-test

Test manually updating video texture in webvr_video
......@@ -65,11 +65,22 @@
video.setAttribute( 'webkit-playsinline', 'webkit-playsinline' );
video.play();
texture = new THREE.VideoTexture( video );
texture = new THREE.Texture( video );
texture.generateMipmaps = false;
texture.minFilter = THREE.NearestFilter;
texture.maxFilter = THREE.NearestFilter;
texture.format = THREE.RGBFormat;
setInterval( function () {
if ( video.readyState >= video.HAVE_CURRENT_DATA ) {
texture.needsUpdate = true;
}
}, 1000 / 24 );
scene = new THREE.Scene();
scene.background = new THREE.Color( 0x101010 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册