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

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

Public Attributes

std::int32_t type = 0
 0 = point light (sphere), 1 = spot light (cone).
std::int32_t lightIndex = 0
 Index of this light in the MNLD array.
std::int32_t flags = 0
 0x1: blend outer and inner color; 0x2: casts shadows.
std::int32_t doodadSet = 0
 The doodad set this light belongs to.
CImVector innerColor {}
 Inner color.
C3Vector position {}
 Position in the WMO.
C3Vector rotation {}
 Euler rotation in radians; rotates the light (spot) or its cookie (point).
float attenStart = 0
 Attenuation start distance.
float attenEnd = 0
 Attenuation end distance.
float intensity = 0
 Light intensity.
CImVector outerColor {}
 Outer color; used with flag 0x1.
float blendStart = 0
 Gradient start distance for inner/outer blending (flag 0x1).
float blendEnd = 0
 Gradient end distance for inner/outer blending (flag 0x1).
std::array< std::uint8_t, 4 > gap1 {}
 Empty gap in the client layout.
float flickerIntensity = 0
 Flickering intensity.
float flickerSpeed = 0
 Flickering speed.

Detailed Description

Definition at line 82 of file light.hpp.

Member Data Documentation

◆ attenEnd

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

Attenuation end distance.

Definition at line 108 of file light.hpp.

◆ attenStart

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

Attenuation start distance.

Definition at line 105 of file light.hpp.

◆ blendEnd

float wowlib::formats::wmo::root::chunks::NewLight::blendEnd = 0

Gradient end distance for inner/outer blending (flag 0x1).

Definition at line 120 of file light.hpp.

◆ blendStart

float wowlib::formats::wmo::root::chunks::NewLight::blendStart = 0

Gradient start distance for inner/outer blending (flag 0x1).

Definition at line 117 of file light.hpp.

◆ doodadSet

std::int32_t wowlib::formats::wmo::root::chunks::NewLight::doodadSet = 0

The doodad set this light belongs to.

Definition at line 93 of file light.hpp.

◆ flags

std::int32_t wowlib::formats::wmo::root::chunks::NewLight::flags = 0

0x1: blend outer and inner color; 0x2: casts shadows.

Definition at line 90 of file light.hpp.

◆ flickerIntensity

float wowlib::formats::wmo::root::chunks::NewLight::flickerIntensity = 0

Flickering intensity.

Definition at line 126 of file light.hpp.

◆ flickerSpeed

float wowlib::formats::wmo::root::chunks::NewLight::flickerSpeed = 0

Flickering speed.

Definition at line 129 of file light.hpp.

◆ gap1

std::array<std::uint8_t, 4> wowlib::formats::wmo::root::chunks::NewLight::gap1 {}

Empty gap in the client layout.

Definition at line 123 of file light.hpp.

◆ innerColor

CImVector wowlib::formats::wmo::root::chunks::NewLight::innerColor {}

Inner color.

Definition at line 96 of file light.hpp.

◆ intensity

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

Light intensity.

Definition at line 111 of file light.hpp.

◆ lightIndex

std::int32_t wowlib::formats::wmo::root::chunks::NewLight::lightIndex = 0

Index of this light in the MNLD array.

Definition at line 87 of file light.hpp.

◆ outerColor

CImVector wowlib::formats::wmo::root::chunks::NewLight::outerColor {}

Outer color; used with flag 0x1.

Definition at line 114 of file light.hpp.

◆ position

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

Position in the WMO.

Definition at line 99 of file light.hpp.

◆ rotation

C3Vector wowlib::formats::wmo::root::chunks::NewLight::rotation {}

Euler rotation in radians; rotates the light (spot) or its cookie (point).

Definition at line 102 of file light.hpp.

◆ type

std::int32_t wowlib::formats::wmo::root::chunks::NewLight::type = 0

0 = point light (sphere), 1 = spot light (cone).

Definition at line 84 of file light.hpp.


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