Created
January 11, 2017 17:13
-
-
Save cabbibo/e7486429a25ff3b3fdd174d767c1f885 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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