UNPKG

mdx-m3-viewer

Version:

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

21 lines (17 loc) 394 B
import Texture from '../../texture'; /** * An M3 texture. */ export default class M3Texture { texture: Texture | null = null; wrapS: number = 0x812f; // CLAMP_TO_EDGE wrapT: number = 0x812f; constructor(repeatS: boolean, repeatT: boolean) { if (repeatS) { this.wrapS = 0x2901; // REPEAT } if (repeatT) { this.wrapT = 0x2901; } } }