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

One MOLT light. More...

#include <wowlib/formats/wmo/root/chunks/light.hpp>

Public Attributes

std::uint8_t type = 0
 The light kind; a LightType value.
std::uint8_t useAtten = 0
 Whether attenuation applies.
std::array< std::uint8_t, 2 > pad {}
 Alignment padding; zero in client files.
CImVector color {}
 Light color.
C3Vector position {}
 Position in model space.
float intensity = 0
 Intensity.
C4Quaternion rotation {}
 Orientation; spot/direct lights only.
float attenStart = 0
 Attenuation start distance.
float attenEnd = 0
 Attenuation end distance.

Detailed Description

One MOLT light.

Not rendered by classic-era clients, but baked into vertex colors by the exporter.

Definition at line 29 of file light.hpp.

Member Data Documentation

◆ attenEnd

float wowlib::formats::wmo::root::chunks::SMOLight::attenEnd = 0

Attenuation end distance.

Definition at line 55 of file light.hpp.

◆ attenStart

float wowlib::formats::wmo::root::chunks::SMOLight::attenStart = 0

Attenuation start distance.

Definition at line 52 of file light.hpp.

◆ color

CImVector wowlib::formats::wmo::root::chunks::SMOLight::color {}

Light color.

Definition at line 40 of file light.hpp.

◆ intensity

float wowlib::formats::wmo::root::chunks::SMOLight::intensity = 0

Intensity.

Definition at line 46 of file light.hpp.

◆ pad

std::array<std::uint8_t, 2> wowlib::formats::wmo::root::chunks::SMOLight::pad {}

Alignment padding; zero in client files.

Definition at line 37 of file light.hpp.

◆ position

C3Vector wowlib::formats::wmo::root::chunks::SMOLight::position {}

Position in model space.

Definition at line 43 of file light.hpp.

◆ rotation

C4Quaternion wowlib::formats::wmo::root::chunks::SMOLight::rotation {}

Orientation; spot/direct lights only.

Definition at line 49 of file light.hpp.

◆ type

std::uint8_t wowlib::formats::wmo::root::chunks::SMOLight::type = 0

The light kind; a LightType value.

Definition at line 31 of file light.hpp.

◆ useAtten

std::uint8_t wowlib::formats::wmo::root::chunks::SMOLight::useAtten = 0

Whether attenuation applies.

Definition at line 34 of file light.hpp.


The documentation for this struct was generated from the following file:
  • src/wowlib/formats/wmo/root/chunks/light.hpp