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

x/threejs_4_deno/src/textures/Texture.d.ts>Texture

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Texture
import { Texture } from "https://deno.land/x/threejs_4_deno@v121/src/textures/Texture.d.ts";

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