30 void setup(
size_t time, GLuint l);
Generic animated value class that reads keyframe data from M2 files.
Abstract base class representing a file within the game data archive.
An animated light source attached to an M2 model bone.
Animated< float > diffIntensity
ssize_t parent
Parent bone index (-1 if none).
Animated< float > ambIntensity
Animated< float > AttenStart
void setup(size_t time, GLuint l)
Set up the OpenGL light for rendering.
Animated< int > UseAttenuation
Whether attenuation is enabled.
ssize_t type
Light type: 0 = directional, 1 = point.
void init(GameFile *f, ModelLightDef &mld, std::vector< uint32 > &global)
Initialise from an M2 light definition block.
Animated< glm::vec3 > diffColor
Animated< float > AttenEnd
Intensity and attenuation tracks.
Animated< glm::vec3 > ambColor
Diffuse and ambient colour tracks.
glm::vec3 tdir
Position, transformed position, direction, transformed direction.