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

One Shadowlands point light (MPL3; replaces MPL2 in 9.0+ files). 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.
float attenuationEnd = 0
 How far the light spreads.
float intensity = 0
 Light intensity.
C3Vector rotation {}
 Rotation; only used to orient light-cookie projection.
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 for the light-cookie texture, or -1.
std::uint16_t flags = 0
 Flags; 0x1 casts raytraced shadows (D3D12, shadow RT level 2+).
std::uint16_t scaleHalf = 0x3800
 Scale as a raw IEEE half-float (0.5 is the default; 10.0 hides player shadows).

Detailed Description

One Shadowlands point light (MPL3; replaces MPL2 in 9.0+ files).

Definition at line 79 of file records.hpp.

Member Data Documentation

◆ attenuationEnd

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

How far the light spreads.

Definition at line 93 of file records.hpp.

◆ attenuationStart

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

Where the light's spread starts.

Definition at line 90 of file records.hpp.

◆ color

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

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

Definition at line 84 of file records.hpp.

◆ flags

std::uint16_t wowlib::formats::wdt::lights::chunks::MapPointLight3::flags = 0

Flags; 0x1 casts raytraced shadows (D3D12, shadow RT level 2+).

Definition at line 114 of file records.hpp.

◆ id

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

Unique light id within the WDT.

Definition at line 81 of file records.hpp.

◆ intensity

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

Light intensity.

Definition at line 96 of file records.hpp.

◆ mltaIndex

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

Index into MLTA, or -1 when unanimated.

Definition at line 108 of file records.hpp.

◆ position

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

Light position.

Definition at line 87 of file records.hpp.

◆ rotation

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

Rotation; only used to orient light-cookie projection.

Definition at line 99 of file records.hpp.

◆ scaleHalf

std::uint16_t wowlib::formats::wdt::lights::chunks::MapPointLight3::scaleHalf = 0x3800

Scale as a raw IEEE half-float (0.5 is the default; 10.0 hides player shadows).

Definition at line 117 of file records.hpp.

◆ textureIndex

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

Index into MTEX for the light-cookie texture, or -1.

Definition at line 111 of file records.hpp.

◆ tileX

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

The ADT tile x coordinate.

Definition at line 102 of file records.hpp.

◆ tileY

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

The ADT tile y coordinate.

Definition at line 105 of file records.hpp.


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