Skip to content

TextureQuad

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/mobius/blob/main/js/TextureQuad.ts for the most up-to-date information.

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.