Skip to content

TextureQuad

Overview

Creates a quad for a given texture with a specific width and height, in the 3d space with x: [0,width] and y: [0,height].

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class TextureQuad

import { TextureQuad } from 'scenerystack/mobius';

Constructor

new TextureQuad( texture : THREE.Texture, width : number, height : number, materialOptions? : THREE.MaterialParameters )

Instance Methods

updateTexture( texture : THREE.Texture, width : number, height : number )

dispose()

Releases references

Instance Properties

disposeEmitter : TReadOnlyEmitter

Source Code

See the source for TextureQuad.ts in the mobius repository.