type ImageSource = HTMLImageElement | HTMLCanvasElement | ImageBitmap;
/**
* Texture with a hard 128x128 maximum. On needsUpdate, source images
* are clamped to 128x128 via nearest-neighbor resampling.
*/
export declare class Texture {
#private;
static BRIGHTNESS_LEVELS: number;
id: number;
name: string;
wrapS: number;
wrapT: number;
image: ImageSource | undefined;
constructor(image?: ImageSource | undefined);
get needsUpdate(): boolean;
set needsUpdate(value: boolean);
/** Cached pixel data, clamped to 128x128. */
get data(): ImageData | undefined;
get width(): number;
get height(): number;
/**
* Pre-multiplied brightness variants of the texture pixel data.
* Lazily built on first access, invalidated on needsUpdate/dispose.
*/
get brightnessLevels(): Uint8ClampedArray[] | undefined;
clone(): Texture;
dispose(): void;
}
export {};
//# sourceMappingURL=Texture.d.ts.map