mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-23 02:06:19 +00:00
TU24
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include "TheEndBiomeDecorator.h"
|
||||
#include "net.minecraft.world.entity.monster.h"
|
||||
#include "net.minecraft.world.level.tile.h"
|
||||
#include "..\Minecraft.Client\Minecraft.h"
|
||||
|
||||
TheEndBiome::TheEndBiome(int id) : Biome(id)
|
||||
{
|
||||
@@ -21,29 +20,8 @@ TheEndBiome::TheEndBiome(int id) : Biome(id)
|
||||
decorator = new TheEndBiomeDecorator(this);
|
||||
}
|
||||
|
||||
Vec3 *TheEndBiome::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 TheEndBiome::isNatural()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TheEndBiome::isFoggy()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// 4J Stu - Don't need override
|
||||
//int TheEndBiome::getSkyColor(float temp)
|
||||
//{
|
||||
// return 0x000000;
|
||||
//}
|
||||
Reference in New Issue
Block a user