Skip to main content

ObjectTexture

type ObjectTexture = {
/**
* Asset URL or Asset ID
*/
source?: string | null;

/**
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures}
* @defaultValue UnsignedByteType
*/
type?: TextureDataType;

/**
* @defaultValue `false`
*/
premultiplyAlpha?: boolean;

/**
* @see {@link http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml}
* @defaultValue `4`
*/
unpackAlignment?: number;

/**
* @see {@link https://threejs.org/docs/#api/en/constants/Textures}
* @default DEFAULT_MAPPING
*/
mapping?: Mapping;

/**
* @see {@link https://threejs.org/docs/#api/en/constants/Textures}
* @default ClampToEdgeWrapping
*/
wrapS?: Wrapping;

/**
* @see {@link https://threejs.org/docs/#api/en/constants/Textures}
* @default ClampToEdgeWrapping
*/
wrapT?: Wrapping;

/**
* @see {@link https://threejs.org/docs/#api/en/constants/Textures}
* @default LinearFilter
*/
magFilter?: MagnificationTextureFilter;

/**
* @see {@link https://threejs.org/docs/#api/en/constants/Textures}
* @default LinearMipmapLinearFilter
*/
minFilter?: MinificationTextureFilter;

/**
* @default 1
*/
anisotropy?: number;

/**
* @see {@link https://threejs.org/docs/#api/en/constants/Textures}
* @default RGBAFormat
*/
format?: PixelFormat;

/**
* @default new Array(0, 0)
*/
offset?: Vector2Array;

/**
* @default new Array(1, 1)
*/
repeat?: Vector2Array;

/**
* @default new Array( 0, 0 )
*/
center?: Vector2Array;

/**
* @default 0
*/
rotation?: number;

/**
* @default true
*/
flipY?: boolean;

/**
* @see {@link https://threejs.org/docs/#api/en/constants/Textures}
* @default LinearSRGBColorSpace
*/
colorSpace?: ColorSpace;
};