Constructor
new VideoTexture( video : HTMLVideoElement, mapping : number, wrapS : number, wrapT : number, magFilter : number, minFilter : number, format : number, type : number, anisotropy : number )
Constructs a new video texture.
video |
The video element to use as a data source for the texture. |
mapping |
The texture mapping. |
wrapS |
The wrapS value. |
wrapT |
The wrapT value. |
magFilter |
The mag filter value. |
minFilter |
The min filter value. |
format |
The texture format. |
type |
The texture type. |
anisotropy |
The anisotropy value. |
Properties
.generateMipmaps : boolean
Whether to generate mipmaps (if possible) for a texture.
Overwritten and set to false by default.
Default is false.
- Overrides: Texture#generateMipmaps
.isVideoTexture : boolean (readonly)
This flag can be used for type testing.
Default is true.
Methods
.update()
This method is called automatically by the renderer and sets Texture#needsUpdate
to true every time a new frame is available.
Only relevant if requestVideoFrameCallback is not supported in the browser.