mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
26 lines (25 loc) • 864 B
TypeScript
import BinaryStream from '../../common/binarystream';
import IndexEntry from './indexentry';
import { Float32AnimationReference, Vector3AnimationReference } from './animationreference';
/**
* A light.
*/
export default class Light {
version: number;
type: number;
unknown0: number;
bone: number;
flags: number;
unknown1: number;
unknown2: number;
lightColor: Vector3AnimationReference;
lightIntensity: Float32AnimationReference;
specularColor: Vector3AnimationReference;
specularIntensity: Float32AnimationReference;
attenuationFar: Float32AnimationReference;
unknown3: number;
attenuationNear: Float32AnimationReference;
hotSpot: Float32AnimationReference;
falloff: Float32AnimationReference;
load(stream: BinaryStream, version: number, _index: IndexEntry[]): void;
}