Skip to content

Commit

Permalink
Updated examples using VideoTexture.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Nov 1, 2018
1 parent f7cb409 commit a0b1473
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion examples/webgl_kinect.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions examples/webgl_materials_video.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;

//

Expand Down
4 changes: 1 addition & 3 deletions examples/webgl_materials_video_webcam.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
3 changes: 0 additions & 3 deletions examples/webgl_video_panorama_equirectangular.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit a0b1473

Please sign in to comment.