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

@@ -29,6 +29,23 @@ float *TheEndDimension::getSunriseColor(float td, float a)
return nullptr;
}
Vec3 *TheEndDimension::getFogColor(float td, float a) const
{
int fogColor = Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_End_Fog_Colour ); //0xa080a0;
float br = Mth::cos(td * PI * 2) * 2 + 0.5f;
if (br < 0.0f) br = 0.0f;
if (br > 1.0f) br = 1.0f;
float r = ((fogColor >> 16) & 0xff) / 255.0f;
float g = ((fogColor >> 8) & 0xff) / 255.0f;
float b = ((fogColor) & 0xff) / 255.0f;
r *= br * 0.0f + 0.15f;
g *= br * 0.0f + 0.15f;
b *= br * 0.0f + 0.15f;
return Vec3::newTemp(r, g, b);
}
bool TheEndDimension::hasGround()
{
return false;
@@ -63,13 +80,12 @@ Pos *TheEndDimension::getSpawnPos()
return new Pos(100, 50, 0);
}
bool TheEndDimension::isFoggyAt(int x, int z)
{
return true;
}
int TheEndDimension::getSpawnYPosition()
{
return 50;
}
// TU30
int TheEndDimension::getBlockLightColour()
{
return Minecraft::GetInstance()->getColourTable()->getColor( eMinecraftColour_BlockLight_EndDimension );
}