CLASSES
TagsA - Z

VideoTexture

BaseTextureTexture

Description

class VideoTexture extends Texture

Constructor

new VideoTexture(name, urlsOrVideo, HTMLVideoElement, scene, generateMipMaps, invertY, samplingMode)

Creates a video texture.

Sample : https://doc.babylonjs.com/tutorials/advanced_texturing

Parameters

Name Type Description
name string Name of the texture
urlsOrVideo string[] or HTMLVideoElement
scene Scene Scene which contain the texture
optional generateMipMaps boolean True to generate a mipmaps
optional invertY boolean True to invert on Y axis

Members

video : HTMLVideoElement

The video element

Methods

update() → boolean