2
0
Эх сурвалжийг харах

Updated examples using VideoTexture.

Mr.doob 6 жил өмнө
parent
commit
a0b14737e7

+ 0 - 1
examples/webgl_kinect.html

@@ -139,7 +139,6 @@
 
 					texture = new THREE.VideoTexture( video );
 					texture.minFilter = THREE.NearestFilter;
-					texture.format = THREE.RGBFormat;
 
 					var width = 640, height = 480;
 					var nearClipping = 850, farClipping = 4000;

+ 0 - 3
examples/webgl_materials_video.html

@@ -107,9 +107,6 @@
 				video = document.getElementById( 'video' );
 
 				texture = new THREE.VideoTexture( video );
-				texture.minFilter = THREE.LinearFilter;
-				texture.magFilter = THREE.LinearFilter;
-				texture.format = THREE.RGBFormat;
 
 				//
 

+ 1 - 3
examples/webgl_materials_video_webcam.html

@@ -63,10 +63,8 @@
 				scene = new THREE.Scene();
 
 				video = document.getElementById( 'video' );
+
 				var texture = new THREE.VideoTexture( video );
-				texture.minFilter = THREE.LinearFilter;
-				texture.magFilter = THREE.LinearFilter;
-				texture.format = THREE.RGBFormat;
 
 				var geometry = new THREE.PlaneBufferGeometry( 16, 9 );
 				geometry.scale( 0.5, 0.5, 0.5 );

+ 0 - 3
examples/webgl_video_panorama_equirectangular.html

@@ -73,9 +73,6 @@
 				video.play();
 
 				var texture = new THREE.VideoTexture( video );
-				texture.minFilter = THREE.LinearFilter;
-				texture.format = THREE.RGBFormat;
-
 				var material = new THREE.MeshBasicMaterial( { map: texture } );
 
 				mesh = new THREE.Mesh( geometry, material );