浏览代码

Updated Texture image description for using video as a texture.

Line 33 says that you can directly use a video(.mp4, ogg/ogv) as a texture. However after much of trial and error, I believe only way to make video work is by placing a html5 video element and continuously updating texture based on video frames.

Made change in documentation to reflect this information.
Gaurav Singh 12 年之前
父节点
当前提交
71a3b35ae1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/api/textures/Texture.html

+ 1 - 1
docs/api/textures/Texture.html

@@ -30,7 +30,7 @@
 
 		<h3>.[page:Image image]</h3>
 		<div>
-		An Image object, typically created using the ImageUtils or [page:ImageLoader ImageLoader] classes. The Image object can include an image (e.g., PNG, JPG, GIF, DDS), video (e.g., MP4, OGG/OGV), or set of six images for a cube map.
+		An Image object, typically created using the ImageUtils or [page:ImageLoader ImageLoader] classes. The Image object can include an image (e.g., PNG, JPG, GIF, DDS), video (e.g., MP4, OGG/OGV), or set of six images for a cube map. To use video as a texture you need to have a playing HTML5 video element as a source for your texture image and continuously update this texture as long as video is playing.
 		</div>
 
 		<h3>.[page:object mapping]</h3>