Spaces:
Running
Running
File size: 1,244 Bytes
2b7aae2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | import { Texture } from './Texture';
import { Mapping, Wrapping, TextureFilter, PixelFormat, TextureDataType, TextureEncoding } from '../constants';
export class DataTexture extends Texture {
/**
* @param data
* @param width
* @param height
* @param [format=THREE.RGBAFormat]
* @param [type=THREE.UnsignedByteType]
* @param [mapping=THREE.Texture.DEFAULT_MAPPING]
* @param [wrapS=THREE.ClampToEdgeWrapping]
* @param [wrapT=THREE.ClampToEdgeWrapping]
* @param [magFilter=THREE.NearestFilter]
* @param [minFilter=THREE.NearestFilter]
* @param [anisotropy=1]
* @param [encoding=THREE.LinearEncoding]
*/
constructor(
data?: BufferSource | null,
width?: number,
height?: number,
format?: PixelFormat,
type?: TextureDataType,
mapping?: Mapping,
wrapS?: Wrapping,
wrapT?: Wrapping,
magFilter?: TextureFilter,
minFilter?: TextureFilter,
anisotropy?: number,
encoding?: TextureEncoding
);
get image(): ImageData;
set image(value: ImageData);
/**
* @default false
*/
flipY: boolean;
/**
* @default false
*/
generateMipmaps: boolean;
/**
* @default 1
*/
unpackAlignment: number;
/**
* @default THREE.DepthFormat
*/
format: PixelFormat;
readonly isDataTexture: true;
}
|