From 7ff656ae2b733bcf2bc621592f602654403eba67 Mon Sep 17 00:00:00 2001 From: Bugisoft <58910128+BugisoftRSG@users.noreply.github.com> Date: Thu, 20 Jul 2023 18:39:53 +0200 Subject: [PATCH] Update TimecycleKeyframeData to RGBA (#126) --- misc/vfx/TimecycleKeyframeData.hpp | 58 +++++++++++++----------------- 1 file changed, 25 insertions(+), 33 deletions(-) diff --git a/misc/vfx/TimecycleKeyframeData.hpp b/misc/vfx/TimecycleKeyframeData.hpp index 6ba64a4..1a4e3fd 100644 --- a/misc/vfx/TimecycleKeyframeData.hpp +++ b/misc/vfx/TimecycleKeyframeData.hpp @@ -4,26 +4,21 @@ class TimecycleKeyframeData { public: char pad_0000[32]; //0x0000 - rage::fvector3 m_azimuth_east; //0x0020 - char pad_002C[4]; //0x002C + rage::fvector4 m_azimuth_east; //0x0020 float m_azimuth_east_intensity; //0x0030 char pad_0034[28]; //0x0034 - rage::fvector3 m_azimuth_west; //0x0050 - char pad_005C[4]; //0x005C + rage::fvector4 m_azimuth_west; //0x0050 float m_azimuth_west_intensity; //0x0060 char pad_0064[28]; //0x0064 - rage::fvector3 m_azimuth_transition; //0x0080 - char pad_008C[4]; //0x008C + rage::fvector4 m_azimuth_transition; //0x0080 float m_azimuth_transition_intensity; //0x0090 char pad_0094[4]; //0x0094 float m_azimuth_transition_position; //0x0098 char pad_009C[20]; //0x009C - rage::fvector3 m_zenith; //0x00B0 - char pad_00BC[4]; //0x00BC + rage::fvector4 m_zenith; //0x00B0 float m_zenith_intensity; //0x00C0 char pad_00C4[28]; //0x00C4 - rage::fvector3 m_zenith_transition; //0x00E0 - char pad_00EC[4]; //0x00EC + rage::fvector4 m_zenith_transition; //0x00E0 float m_zenith_transition_intensity; //0x00F0 float m_zenith_transition_position; //0x00F4 float m_zenith_transition_east_blend; //0x00F8 @@ -40,20 +35,20 @@ class TimecycleKeyframeData uint32_t m_unk_190; //0x0190 uint32_t m_unk_194; //0x0194 char pad_0198[8]; //0x0198 - rage::fvector3 m_unk_1A0; //0x01A0 - char pad_01AC[20]; //0x01AC - rage::fvector3 m_sun; //0x01C0 - char pad_01CC[36]; //0x01CC - rage::fvector3 m_sun_disc; //0x01F0 - char pad_01FC[36]; //0x01FC + rage::fvector4 m_unk_1A0; //0x01A0 + char pad_01AC[16]; //0x01AC + rage::fvector4 m_sun; //0x01C0 + char pad_01CC[32]; //0x01CC + rage::fvector4 m_sun_disc; //0x01F0 + char pad_01FC[32]; //0x01FC float m_sun_disc_size; //0x0220 float m_sun_hdr; //0x0224 float m_sun_miephase; //0x0228 float m_sun_miescatter; //0x022C float m_sun_mie_intensity_mult; //0x0230 char pad_0234[28]; //0x0234 - rage::fvector3 m_unk_250; //0x0250 - char pad_025C[20]; //0x025C + rage::fvector4 m_unk_250; //0x0250 + char pad_025C[16]; //0x025C float m_cloud_shadow_strength; //0x0270 float m_cloud_density_mult; //0x0274 float m_cloud_density_bias; //0x0278 @@ -70,23 +65,21 @@ class TimecycleKeyframeData char pad_0304[4]; //0x0304 float m_cloud_overall_strength; //0x0308 char pad_030C[16]; //0x030C - rage::fvector3 m_unk_320; //0x031C - char pad_0328[4]; //0x0328 - rage::fvector3 m_cloud_base; //0x032C - char pad_0338[4]; //0x0338 - rage::fvector3 m_unk_340; //0x033C - char pad_0348[20]; //0x0348 - rage::fvector3 m_cloud_1; //0x035C - char pad_0368[24]; //0x0368 - rage::fvector3 m_cloud_mid; //0x0380 - char pad_038C[36]; //0x038C + rage::fvector4 m_unk_320; //0x031C + rage::fvector4 m_cloud_base; //0x032C + rage::fvector4 m_unk_340; //0x033C + char pad_0348[16]; //0x0348 + rage::fvector4 m_cloud_1; //0x035C + char pad_0368[20]; //0x0368 + rage::fvector4 m_cloud_mid; //0x0380 + char pad_038C[32]; //0x038C float m_unk_380; //0x03B0 float m_small_cloud_detail_strength; //0x03B4 float m_small_cloud_density_mult; //0x03B8 float m_unk_3BC; //0x03BC char pad_03C0[32]; //0x03C0 - rage::fvector3 m_small_cloud; //0x03E0 - char pad_03EC[36]; //0x03EC + rage::fvector4 m_small_cloud; //0x03E0 + char pad_03EC[32]; //0x03EC float m_sun_influence_radius; //0x0410 float m_sun_scatter_inten; //0x0414 float m_moon_influence_radius; //0x0418 @@ -96,9 +89,8 @@ class TimecycleKeyframeData char pad_04F8[60]; //0x04F8 float m_moon_disc_size; //0x0534 char pad_0538[24]; //0x0538 - rage::fvector3 m_moon; //0x0550 - char pad_055C[4]; //0x055C - float m_moon_itensity; //0x0560 + rage::fvector4 m_moon; //0x0550 + float m_moon_intensity; //0x0560 char pad_0564[140]; //0x0564 }; //Size: 0x05F0 static_assert(sizeof(TimecycleKeyframeData) == 0x5F0); \ No newline at end of file