wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::formats::wdt::lights::chunks::MapSpotLight Struct Reference

One Legion spot light (MSLT). More...

#include <wowlib/formats/wdt/lights/chunks/records.hpp>

Public Attributes

std::uint32_t id = 0
 Unique light id within the WDT.
CImVector color {}
 Light color (b, g, r, a); alpha 0 means fully opaque.
C3Vector position {}
 Light position.
float attenuationStart = 0
 Where the light's spread starts; must be <= attenuation_end.
float attenuationEnd = 0
 How far the light spreads.
float intensity = 0
 Light intensity.
C3Vector rotation {}
 Rotation, radians.
float spotlightRadius = 0
 Spotlight cone radius.
float innerAngle = 0
 Inner cone angle, radians.
float outerAngle = 0
 Outer cone angle, radians.
std::uint16_t tileX = 0
 The ADT tile x coordinate.
std::uint16_t tileY = 0
 The ADT tile y coordinate.
std::int16_t mltaIndex = -1
 Index into MLTA, or -1 when unanimated.
std::int16_t textureIndex = -1
 Index into MTEX, or -1.

Detailed Description

One Legion spot light (MSLT).

Definition at line 123 of file records.hpp.

Member Data Documentation

◆ attenuationEnd

float wowlib::formats::wdt::lights::chunks::MapSpotLight::attenuationEnd = 0

How far the light spreads.

Definition at line 137 of file records.hpp.

◆ attenuationStart

float wowlib::formats::wdt::lights::chunks::MapSpotLight::attenuationStart = 0

Where the light's spread starts; must be <= attenuation_end.

Definition at line 134 of file records.hpp.

◆ color

CImVector wowlib::formats::wdt::lights::chunks::MapSpotLight::color {}

Light color (b, g, r, a); alpha 0 means fully opaque.

Definition at line 128 of file records.hpp.

◆ id

std::uint32_t wowlib::formats::wdt::lights::chunks::MapSpotLight::id = 0

Unique light id within the WDT.

Definition at line 125 of file records.hpp.

◆ innerAngle

float wowlib::formats::wdt::lights::chunks::MapSpotLight::innerAngle = 0

Inner cone angle, radians.

Definition at line 149 of file records.hpp.

◆ intensity

float wowlib::formats::wdt::lights::chunks::MapSpotLight::intensity = 0

Light intensity.

Definition at line 140 of file records.hpp.

◆ mltaIndex

std::int16_t wowlib::formats::wdt::lights::chunks::MapSpotLight::mltaIndex = -1

Index into MLTA, or -1 when unanimated.

Definition at line 161 of file records.hpp.

◆ outerAngle

float wowlib::formats::wdt::lights::chunks::MapSpotLight::outerAngle = 0

Outer cone angle, radians.

Definition at line 152 of file records.hpp.

◆ position

C3Vector wowlib::formats::wdt::lights::chunks::MapSpotLight::position {}

Light position.

Definition at line 131 of file records.hpp.

◆ rotation

C3Vector wowlib::formats::wdt::lights::chunks::MapSpotLight::rotation {}

Rotation, radians.

Definition at line 143 of file records.hpp.

◆ spotlightRadius

float wowlib::formats::wdt::lights::chunks::MapSpotLight::spotlightRadius = 0

Spotlight cone radius.

Definition at line 146 of file records.hpp.

◆ textureIndex

std::int16_t wowlib::formats::wdt::lights::chunks::MapSpotLight::textureIndex = -1

Index into MTEX, or -1.

Definition at line 164 of file records.hpp.

◆ tileX

std::uint16_t wowlib::formats::wdt::lights::chunks::MapSpotLight::tileX = 0

The ADT tile x coordinate.

Definition at line 155 of file records.hpp.

◆ tileY

std::uint16_t wowlib::formats::wdt::lights::chunks::MapSpotLight::tileY = 0

The ADT tile y coordinate.

Definition at line 158 of file records.hpp.


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