Made nether ceiling smooth.
This commit is contained in:
parent
fe7018bd00
commit
bfad1be567
@ -631,7 +631,14 @@ void cCompoGenNether::ComposeTerrain(cChunkDesc & a_ChunkDesc)
|
|||||||
|
|
||||||
int Height = a_ChunkDesc.GetHeight(x, z);
|
int Height = a_ChunkDesc.GetHeight(x, z);
|
||||||
a_ChunkDesc.SetBlockType(x, Height, z, E_BLOCK_BEDROCK);
|
a_ChunkDesc.SetBlockType(x, Height, z, E_BLOCK_BEDROCK);
|
||||||
int CeilingDisguiseHeight = Height - 2 - (m_Noise1.IntNoise2DInt(a_ChunkDesc.GetChunkX() * cChunkDef::Width + x, a_ChunkDesc.GetChunkZ() * cChunkDef::Width + z) % 3);
|
// int CeilingDisguiseHeight = Height - 2 - (m_Noise1.IntNoise2DInt(a_ChunkDesc.GetChunkX() * cChunkDef::Width + x, a_ChunkDesc.GetChunkZ() * cChunkDef::Width + z) % 3);
|
||||||
|
NOISE_DATATYPE CeilingDisguise = (m_Noise1.CubicNoise2D((float)(a_ChunkDesc.GetChunkX() * cChunkDef::Width + x) / 10, (float)(a_ChunkDesc.GetChunkZ() * cChunkDef::Width + z) / 10));
|
||||||
|
if (CeilingDisguise < 0)
|
||||||
|
{
|
||||||
|
CeilingDisguise = -CeilingDisguise;
|
||||||
|
}
|
||||||
|
|
||||||
|
int CeilingDisguiseHeight = Height - 2 - CeilingDisguise * 3;
|
||||||
|
|
||||||
for (int y = Height - 1; y > CeilingDisguiseHeight; y--)
|
for (int y = Height - 1; y > CeilingDisguiseHeight; y--)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user