Skip to content

Instantly share code, notes, and snippets.

@cabbibo
Created January 11, 2017 17:13
Show Gist options
  • Save cabbibo/e7486429a25ff3b3fdd174d767c1f885 to your computer and use it in GitHub Desktop.
Save cabbibo/e7486429a25ff3b3fdd174d767c1f885 to your computer and use it in GitHub Desktop.
var source = document.createElement("source");
source.src = "fluid.mp4"
source.type = "video/mp4"
var video = new Video("dgFW1.mp3");
video.appendChild( source );
//video.play();
video.ready(function(){
init();
video.play();
})
// inside init
texture = new THREE.VideoTexture( video );
texture.minFilter = THREE.LinearFilter;
texture.magFilter = THREE.LinearFilter;
texture.format = THREE.RGBFormat;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment