You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some potential starting points:
Per RiverwoodModder
This should be how to calculate it, I'm just not sure where in CS to put it, and how to make it available in lighting.hlsl
// Papyrus Weather.GetClassification
int32_t GetClassification(TESWeather * weather)
{
const auto flags = *((byte *)weather + 0x66F);
if (flags & 1)
return 0;
if (flags & 2)
return 1;
if (flags & 4)
return 2;
if (flags & 8)
return 3;
return 0xFFFFFFFF;
}
bool GetCurrentWeatherClassification(int32_t &classification)
{
const auto skyPtr = *g_skyPtr;
if (skyPtr && skyPtr->currentWeather)
{
classification = GetClassification(skyPtr->currentWeather);
return true;
}
return false;
}
The text was updated successfully, but these errors were encountered:
Some potential starting points:
Per RiverwoodModder
The text was updated successfully, but these errors were encountered: