UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

25 lines (23 loc) 824 B
/** * An M3 camera. */ export default class M3Camera { /** * @param {M3ParserCamera} camera */ constructor(camera) { this.bone = camera.bone; this.name = camera.name.getAll().join(''); // / TODO: Add animated getters, much like the Mdx structures. /* this.fieldOfView = new AnimationReference(reader, readFloat32); this.farClip = new AnimationReference(reader, readFloat32); this.nearClip = new AnimationReference(reader, readFloat32); this.clip2 = new AnimationReference(reader, readFloat32); this.focalDepth = new AnimationReference(reader, readFloat32); this.falloffStart = new AnimationReference(reader, readFloat32); this.falloffEnd = new AnimationReference(reader, readFloat32); this.depthOfField = new AnimationReference(reader, readFloat32); */ } }