UNPKG

mdx-m3-viewer

Version:

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

22 lines (18 loc) 356 B
import ModelInstance from '../../modelinstance'; /** * An OBJ model instance. */ export default class ObjModelInstance extends ModelInstance { /** * */ load() { // Let's give every instance its own color! this.color = new Float32Array([Math.random(), Math.random(), Math.random()]); } /** * */ updateAnimations() { } }