Class VideoTexture

JavaScript events for custom objects

Source

src/core/EventDispatcher.js

Hierarchy

Constructors

Properties

anisotropy: number

Default

1

center: THREE.Vector2

Default

new THREE.Vector2( 0, 0 )

Default

THREE.LinearEncoding

flipY: boolean

Default

true

format: PixelFormat

Default

THREE.RGBAFormat

generateMipmaps: boolean

Default

false

id: number
internalFormat: PixelFormatGPU
isRenderTargetTexture: boolean

Default

false

isTexture: true
isVideoTexture: true
magFilter: TextureFilter

Default

THREE.LinearFilter

mapping: Mapping

Default

THREE.Texture.DEFAULT_MAPPING

matrix: Matrix3

Default

new THREE.Matrix3()

matrixAutoUpdate: boolean

Default

true

minFilter: TextureFilter

Default

THREE.LinearMipmapLinearFilter

mipmaps: any[]

Default

[]

name: string

Default

''

needsPMREMUpdate: boolean

Default

false

offset: THREE.Vector2

Default

new THREE.Vector2( 0, 0 )

onUpdate: (() => void)

Type declaration

    • (): void
    • Returns void

premultiplyAlpha: boolean

Default

false

repeat: THREE.Vector2

Default

new THREE.Vector2( 1, 1 )

rotation: number

Default

0

source: Source

The data definition of a texture. A reference to the data source can be shared across textures. This is often useful in context of spritesheets where multiple textures render the same data but with different texture transformations.

sourceFile: string

Default

THREE.UnsignedByteType

unpackAlignment: number

Default

4

userData: any

An object that can be used to store custom data about the Material. It should not hold references to functions as these will not be cloned.

Default

uuid: string
version: number

Default

0

wrapS: Wrapping

Default

THREE.ClampToEdgeWrapping

wrapT: Wrapping

Default

THREE.ClampToEdgeWrapping

DEFAULT_IMAGE: any
DEFAULT_MAPPING: any

Accessors

  • get image(): any
  • An image object, typically created using the load method. This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.

    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 - the VideoTexture class handles this automatically.

    Returns any

  • set image(data: any): void
  • An image object, typically created using the load method. This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.

    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 - the VideoTexture class handles this automatically.

    Parameters

    • data: any

    Returns void

  • set needsUpdate(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T extends string

    Parameters

    Returns void

  • Fire an event type.

    Parameters

    Returns void

  • Returns void

  • Checks if listener is added to an event type.

    Type Parameters

    • T extends string

    Parameters

    Returns boolean

  • Removes a listener from an event type.

    Type Parameters

    • T extends string

    Parameters

    Returns void

  • Parameters

    • meta: any

    Returns any

  • Returns void

Generated using TypeDoc