UNPKG

arx-level-generator

Version:
27 lines (26 loc) 911 B
import { ArxPolygonFlags } from 'arx-convert/types'; import { TransparencyType } from './Polygon.js'; import { Texture, TextureConstructorProps } from './Texture.js'; type MaterialExtraProps = { flags?: ArxPolygonFlags; /** * number between 0 and 100 (0..99 = min..max transparency, 100 = opaque - transparency flag should be removed) * * default value is 100 */ opacity?: number; /** * default value is "additive" */ opacityMode?: TransparencyType; }; type MaterialConstructorProps = TextureConstructorProps & MaterialExtraProps; export declare class Material extends Texture { flags: ArxPolygonFlags; opacity: number; opacityMode: TransparencyType; constructor({ flags, opacity, opacityMode, ...props }: MaterialConstructorProps); clone(): this; static fromTexture(texture: Texture, props?: MaterialExtraProps): Material; } export {};