DB/LightParams: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
(Added Flags (thanks to Azarchius@Discord))
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Controls some of the settings which don't change with time for light, fog, and water.
Controls some of the settings which don't change with time for light, fog, and water.


== Header Info ==
==1.12.1.5875==
  Records...................571
  struct LightParamsRec {
Fields......................9 
  uint32_t m_ID;
Record Size................36
  uint32_t m_highlightSky;
  String Block Size...........1
  {{Template:Type/foreign_key|table=LightSkybox}} m_lightSkyboxID;
  float m_glow;
  float m_waterShallowAlpha;
  float m_waterDeepAlpha;
  float m_oceanShallowAlpha;
  float m_oceanDeepAlpha;
  uint32_t m_flags;
  };


== Structure ==
== Structure ==
Line 24: Line 31:
   uint32_t m_ID;
   uint32_t m_ID;
   uint32_t m_highlightSky;
   uint32_t m_highlightSky;
   uint32_t m_lightSkyboxID;
   {{Template:Type/foreign_key|table=LightSkybox}} m_lightSkyboxID;
   uint32_t m_cloudTypeID;
   uint32_t m_cloudTypeID;
   float m_glow;
   float m_glow;
Line 33: Line 40:
   uint32_t m_flags;
   uint32_t m_flags;
  };
  };
==Flags==
{| class="wikitable"
|-
! Flags !! Notes
|-
| 0x1 || underwater luminosity
|-
| 0x2 || show floating sprites
|-
| 0x4 || hide sun
|-
| 0x8 || hide moon
|-
| 0x10 || hide stars
|-
| 0x20 || does not exist I believe
|-
| 0x40 || seemingly exists but not used I believe
|-
| 0x80 || hide celestial object (eg red argus star)
|}
[[Category:DBC]]
[[Category:DBC]]
[[Category:DBC_Vanilla]]
[[Category:DBC_WotLK]]
[[Category:DBC_WotLK]]
[[Category:DBC_WoD]][[Category:6.0.1.18179]]
[[Category:DBC_WoD]][[Category:6.0.1.18179]]

Latest revision as of 22:12, 22 May 2024

Controls some of the settings which don't change with time for light, fog, and water.

1.12.1.5875

struct LightParamsRec {
  uint32_t m_ID;
  uint32_t m_highlightSky;
  foreign_key<uint32_t, &LightSkyboxRec::m_ID> m_lightSkyboxID;
  float m_glow;
  float m_waterShallowAlpha;
  float m_waterDeepAlpha;
  float m_oceanShallowAlpha;
  float m_oceanDeepAlpha;
  uint32_t m_flags;
};

Structure

Column 	Field 					Type 		Notes
1  	ID 					Integer 	
2 	highlightSky 				Boolean 	
3 	lightSkyboxID 				Integer 	This is a ref to LightSkybox
4 	cloudTypeID 				Integer
5 	glow 					Float 		This controls how much Fog gets added to everything (!) and is used in some places to make them look extra bright
6 	waterShallowAlpha			Float 		Controls how transparent the water is for lakes & rivers.
7 	waterDeepAlpha 				Float 		
8 	oceanShallowAlpha 			Float 		Controls how transparent the water is for the ocean.
9 	oceanDeepAlpha 				Float
10	flags					Integer

6.0.1.18179

struct LightParamsRec {
  uint32_t m_ID;
  uint32_t m_highlightSky;
  foreign_key<uint32_t, &LightSkyboxRec::m_ID> m_lightSkyboxID;
  uint32_t m_cloudTypeID;
  float m_glow;
  float m_waterShallowAlpha;
  float m_waterDeepAlpha;
  float m_oceanShallowAlpha;
  float m_oceanDeepAlpha;
  uint32_t m_flags;
};

Flags

Flags Notes
0x1 underwater luminosity
0x2 show floating sprites
0x4 hide sun
0x8 hide moon
0x10 hide stars
0x20 does not exist I believe
0x40 seemingly exists but not used I believe
0x80 hide celestial object (eg red argus star)