mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
27 lines (26 loc) • 730 B
TypeScript
import BinaryStream from '../../common/binarystream';
import TokenStream from './tokenstream';
import GenericObject from './genericobject';
export declare const enum LightType {
None = -1,
Omnidirectional = 0,
Directional = 1,
Ambient = 2
}
/**
* A light.
*/
export default class Light extends GenericObject {
type: LightType;
attenuation: Float32Array;
color: Float32Array;
intensity: number;
ambientColor: Float32Array;
ambientIntensity: number;
constructor();
readMdx(stream: BinaryStream): void;
writeMdx(stream: BinaryStream): void;
readMdl(stream: TokenStream): void;
writeMdl(stream: TokenStream): void;
getByteLength(): number;
}