WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
ModelColor Struct Reference

Animated vertex colour and opacity used by M2 render passes. More...

#include <ModelColor.h>

Collaboration diagram for ModelColor:
[legend]

Public Member Functions

void init (GameFile *f, ModelColorDef &mcd, std::vector< uint32 > &global)
 Initialise from an M2 colour definition block.
 

Public Attributes

Animated< glm::vec3 > color
 RGB colour animation track.
 
AnimatedShort opacity
 Opacity animation track (0 = transparent, 0x7FFF = opaque).
 

Detailed Description

Animated vertex colour and opacity used by M2 render passes.

Definition at line 18 of file ModelColor.h.

Member Function Documentation

◆ init()

void ModelColor::init ( GameFile f,
ModelColorDef mcd,
std::vector< uint32 > &  global 
)

Initialise from an M2 colour definition block.

Definition at line 4 of file ModelColor.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ color

Animated<glm::vec3> ModelColor::color

RGB colour animation track.

Definition at line 20 of file ModelColor.h.

◆ opacity

AnimatedShort ModelColor::opacity

Opacity animation track (0 = transparent, 0x7FFF = opaque).

Definition at line 21 of file ModelColor.h.


The documentation for this struct was generated from the following files: