Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/deps.ts>three.Texture

A framework for Beat Saber map scripting.
Go to Latest
class three.Texture
Re-export
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { Texture } = three;

Constructors

new
Texture(
image?: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement,
mapping?: Mapping,
wrapS?: Wrapping,
wrapT?: Wrapping,
magFilter?: TextureFilter,
minFilter?: TextureFilter,
format?: PixelFormat,
anisotropy?: number,
encoding?: TextureEncoding,
)

Properties

anisotropy: number
center: Vector2
encoding: TextureEncoding
flipY: boolean
format: PixelFormat
generateMipmaps: boolean
id: number
image: any

An image object, typically created using the TextureLoader.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.

internalFormat: PixelFormatGPU | null
isRenderTargetTexture: boolean
readonly
isTexture: true
magFilter: TextureFilter
mapping: Mapping
matrix: Matrix3
matrixAutoUpdate: boolean
minFilter: TextureFilter
mipmaps: any[]
name: string
needsPMREMUpdate: boolean
writeonly
needsUpdate: boolean
offset: Vector2
onUpdate: () => void
premultiplyAlpha: boolean
repeat: Vector2
rotation: number
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
unpackAlignment: number
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.

uuid: string
version: number
wrapS: Wrapping
wrapT: Wrapping

Methods

clone(): this
copy(source: Texture): this
dispose(): void
toJSON(meta: any): any
updateMatrix(): void

Static Properties

DEFAULT_IMAGE: any
DEFAULT_MAPPING: any