|
@@ -18,7 +18,7 @@
|
|
This is almost the same as the base [page:Texture Texture] class, except that it continuosly sets [page:Texture.needsUpdate needsUpdate] to *true* so that the texture is updated as the video plays. Automatic creation of [page:Texture.mipmaps mipmaps] is also disabled.
|
|
This is almost the same as the base [page:Texture Texture] class, except that it continuosly sets [page:Texture.needsUpdate needsUpdate] to *true* so that the texture is updated as the video plays. Automatic creation of [page:Texture.mipmaps mipmaps] is also disabled.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
- <h2>Example</h2>
|
|
|
|
|
|
+ <h2>Example</h2>
|
|
|
|
|
|
<p>[example:webgl_materials_video materials / video ]</p>
|
|
<p>[example:webgl_materials_video materials / video ]</p>
|
|
|
|
|
|
@@ -30,7 +30,7 @@ var texture = new THREE.VideoTexture( video );
|
|
texture.minFilter = THREE.LinearFilter;
|
|
texture.minFilter = THREE.LinearFilter;
|
|
texture.magFilter = THREE.LinearFilter;
|
|
texture.magFilter = THREE.LinearFilter;
|
|
texture.format = THREE.RGBFormat;
|
|
texture.format = THREE.RGBFormat;
|
|
- </code>
|
|
|
|
|
|
+ </code>
|
|
|
|
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
<h2>Constructor</h2>
|
|
@@ -38,7 +38,7 @@ texture.format = THREE.RGBFormat;
|
|
<p>
|
|
<p>
|
|
[page:Video video] -- The video element to use as the texture. <br />
|
|
[page:Video video] -- The video element to use as the texture. <br />
|
|
|
|
|
|
- [page:Constant mapping] -- How the image is applied to the object. An object type of [page:Textures THREE.UVMapping].
|
|
|
|
|
|
+ [page:Constant mapping] -- How the image is applied to the object. An object type of [page:Textures THREE.UVMapping].
|
|
See [page:Textures mapping constants] for other choices.<br />
|
|
See [page:Textures mapping constants] for other choices.<br />
|
|
|
|
|
|
[page:Constant wrapS] -- The default is [page:Textures THREE.ClampToEdgeWrapping].
|
|
[page:Constant wrapS] -- The default is [page:Textures THREE.ClampToEdgeWrapping].
|
|
@@ -51,13 +51,13 @@ texture.format = THREE.RGBFormat;
|
|
The default is [page:Textures THREE.LinearFilter]. See [page:Textures magnification filter constants] for other choices.<br />
|
|
The default is [page:Textures THREE.LinearFilter]. See [page:Textures magnification filter constants] for other choices.<br />
|
|
|
|
|
|
[page:Constant minFilter] -- How the texture is sampled when a texel covers less than one pixel.
|
|
[page:Constant minFilter] -- How the texture is sampled when a texel covers less than one pixel.
|
|
- The default is [page:Textures THREE.LinearMipmapLinearFilter]. See [page:Textures minification filter constants] for other choices.<br />
|
|
|
|
|
|
+ The default is [page:Textures THREE.LinearMipmapLinearFilter]. See [page:Textures minification filter constants] for other choices.<br />
|
|
|
|
|
|
- [page:Constant format] -- The format used in the texture.
|
|
|
|
- See [page:Textures format constants] for other choices.<br />
|
|
|
|
|
|
+ [page:Constant format] -- The format used in the texture.
|
|
|
|
+ See [page:Textures format constants] for other choices.<br />
|
|
|
|
|
|
- [page:Constant type] -- Default is [page:Textures THREE.UnsignedByteType].
|
|
|
|
- See [page:Textures type constants] for other choices.<br />
|
|
|
|
|
|
+ [page:Constant type] -- Default is [page:Textures THREE.UnsignedByteType].
|
|
|
|
+ See [page:Textures type constants] for other choices.<br />
|
|
|
|
|
|
[page:Number anisotropy] -- The number of samples taken along the axis through the pixel that has the highest density of texels.
|
|
[page:Number anisotropy] -- The number of samples taken along the axis through the pixel that has the highest density of texels.
|
|
By default, this value is 1. A higher value gives a less blurry result than a basic mipmap, at the cost of more texture samples being used.
|
|
By default, this value is 1. A higher value gives a less blurry result than a basic mipmap, at the cost of more texture samples being used.
|
|
@@ -68,8 +68,8 @@ texture.format = THREE.RGBFormat;
|
|
<h2>Properties</h2>
|
|
<h2>Properties</h2>
|
|
|
|
|
|
<p>
|
|
<p>
|
|
- See the base [page:Texture Texture] class for common properties.
|
|
|
|
- </p>
|
|
|
|
|
|
+ See the base [page:Texture Texture] class for common properties.
|
|
|
|
+ </p>
|
|
|
|
|
|
<h3>[property:boolean needsUpdate]</h3>
|
|
<h3>[property:boolean needsUpdate]</h3>
|
|
<p>
|
|
<p>
|
|
@@ -78,14 +78,14 @@ texture.format = THREE.RGBFormat;
|
|
|
|
|
|
<h2>Methods</h2>
|
|
<h2>Methods</h2>
|
|
|
|
|
|
- <p>
|
|
|
|
- See the base [page:Texture Texture] class for common methods.
|
|
|
|
- </p>
|
|
|
|
|
|
+ <p>
|
|
|
|
+ See the base [page:Texture Texture] class for common methods.
|
|
|
|
+ </p>
|
|
|
|
|
|
- <h3>[method:null update]()</h3>
|
|
|
|
|
|
+ <h3>[method:null update]()</h3>
|
|
<p>
|
|
<p>
|
|
This is called automatically and sets [property:boolean needsUpdate] to *true* every time
|
|
This is called automatically and sets [property:boolean needsUpdate] to *true* every time
|
|
- a new frame is available.
|
|
|
|
|
|
+ a new frame is available.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
|
|