public override void RenderEastSide() { Visible = true; if (_xrNeed) { Renderer.GenFace(X, Y + _xrLevel, Z, 0, 0, 1, 0, _level - _xrLevel, 0, 0, Block, 1, _level - _xrLevel); LightingHelper.SetLightEast(WorldX - 1, WorldY, WorldZ, Block.Biomed); } }
public override void RenderEastSide() { if (Renderer.IsRenderNeed(Block, BlockId, GetNeighbor(-1, 0, 0))) { Visible = true; Renderer.GenFace(X, Y, Z, 0, 0, 1, 0, 1, 0, 0, Block, 1); LightingHelper.SetLightEast(WorldX - 1, WorldY, WorldZ, Block.Biomed); } }
public override void RenderEastSide() { Visible = true; switch ((int)Block.RenderParam) { case 0: Renderer.GenFace(X, Y + 0.1875f, Z + 1, 0, 0, -1, 0, 0.375f, 0, -1, Block, 0, 0.375f, 0.25f, 1.171875f, 2.125f); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 0.1875f, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.5f - 0.109375f, 3f - 0.1875f * 3); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 1, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f, 2.8125f); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 1: Renderer.GenFace(X + 0.8125f, Y, Z + 0.1875f, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f + 0.046875f, 2.8125f); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 0.8125f, Y, Z + 1, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.5f - 0.109375f + 0.046875f, 3f - 0.1875f * 3); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 2: Renderer.GenFace(X, Y + 0.1875f, Z, 0, 0, 1, 0, 0.375f, 0, 2, Block, 0, 2.666667f, 0.09375f, 1, 1 + 20.0f / 32); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1 - 0.1875f, Y, Z + 0.1875f, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f + 6.0f / 128, 3f - 0.1875f * 3); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 0.1875f, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f - 3.0f / 128, 2.8125f); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 3: Renderer.GenFace(X, Y + 0.1875f, Z, 0, 0, 1, 0, 0.375f, 0, 3, Block, 0, 2.666667f, 0.09375f, 1 + 22.0f / 128, 1 + 20.0f / 32); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 1, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f, 3f - 0.1875f * 3); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1 - 0.1875f, Y, Z + 1, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f + 3.0f / 128, 2.8125f); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 4: Renderer.GenFace(X + 0.8125f, Y, Z + 0.1875f, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f + 0.046875f, 3f - 0.1875f * 4); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 0.8125f, Y, Z + 1, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.5f - 0.109375f + 0.046875f, 3f - 0.1875f * 2); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 5: Renderer.GenFace(X, Y + 0.1875f, Z + 1, 0, 0, -1, 0, 0.375f, 0, -1, Block, 0, 0.375f, 0.25f, 1.171875f - 0.125f, 2.125f + 0.6875f); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 0.1875f, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.5f - 0.109375f, 3f - 0.1875f * 2); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 1, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.5f - 0.0859375f, 3f - 0.1875f * 4); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 6: Renderer.GenFace(X, Y + 0.1875f, Z, 0, 0, 1, 0, 0.375f, 0, 2, Block, 0, 2.666667f, 0.09375f, 1, 1 + 42.0f / 32); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 1, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f, 3f - 0.1875f * 2); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1 - 0.1875f, Y, Z + 1, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f + 3.0f / 128, 3f - 0.1875f * 4); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 7: Renderer.GenFace(X, Y + 0.1875f, Z, 0, 0, 1, 0, 0.375f, 0, 3, Block, 0, 2.666667f, 0.09375f, 1 + 22.0f / 128, 1 + 42.0f / 32); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1 - 0.1875f, Y, Z + 0.1875f, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f + 6.0f / 128, 3f - 0.1875f * 2); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 0.1875f, 0, 0.1875f, 0, 0, 0, -0.1875f, 2, Block, 0, 1, 0.046875f, 1.4140625f - 3.0f / 128, 3f - 0.1875f * 4); LightingHelper.SetLightEast(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; } }