This commit is contained in:
GabsPuNs
2026-05-14 21:52:21 -04:00
parent 1b2f5c6fe8
commit f8a2d644f5
291 changed files with 7363 additions and 18368 deletions

View File

@@ -16,6 +16,19 @@ void HellDimension::init()
id = -1;
}
Vec3 *HellDimension::getFogColor(float td, float a) const
{
int colour = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_Nether_Fog_Colour );
BYTE redComponent = ((colour>>16)&0xFF);
BYTE greenComponent = ((colour>>8)&0xFF);
BYTE blueComponent = ((colour)&0xFF);
float rr = static_cast<float>(redComponent)/256;//0.2f;
float gg = static_cast<float>(greenComponent)/256;//0.03f;
float bb = static_cast<float>(blueComponent)/256;//0.03f;
return Vec3::newTemp(rr, gg, bb);
}
void HellDimension::updateLightRamp()
{
float ambientLight = 0.10f;
@@ -65,13 +78,12 @@ bool HellDimension::mayRespawn() const
return false;
}
bool HellDimension::isFoggyAt(int x, int z)
{
return true;
}
int HellDimension::getXZSize()
{
return ceil(static_cast<float>(level->getLevelData()->getXZSize()) / level->getLevelData()->getHellScale());
}
// TU30
int HellDimension::getBlockLightColour()
{
return Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_BlockLight_HellDimension );
}