public override void RenderWestSide() { Visible = true; if (_xlNeed) { Renderer.GenFace(X + 1, Y + _xlLevel, Z, 0, _level - _xlLevel, 0, 0, 0, 1, 2, Block, 0, _level - _xlLevel); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed); } }
public override void RenderWestSide() { if (Renderer.IsRenderNeed(Block, BlockId, GetNeighbor(1, 0, 0))) { Visible = true; Renderer.GenFace(X + 1, Y, Z, 0, 1, 0, 0, 0, 1, 2, Block, 0); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed); } }
public override void RenderWestSide() { Visible = true; switch ((int)Block.RenderParam) { case 0: Renderer.GenFace(X + 0.1875f, Y, Z + 0.1875f, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4375f, 2.4375f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 0.1875f, Y, Z + 1, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4609375f, 2.8125f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 1: Renderer.GenFace(X + 1, Y + 0.1875f, Z + 1, 0, 0.375f, 0, 0, 0, -1, -3, Block, 0, 0.375f, 0.25f, 1.171875f, 2.125f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z + 0.1875f, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4140625f, 2.8125f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z + 1, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.390625f, 2.4375f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 2: Renderer.GenFace(X + 1, Y + 0.1875f, Z, 0, 0.375f, 0, 0, 0, 1, 0, Block, 0, 2.666667f, 0.09375f, 1.171875f, 1.625f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z + 0.1875f, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4140625f, 2.4375f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 0.1875f, Y, Z + 0.1875f, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4375f, 2.8125f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 3: Renderer.GenFace(X + 1, Y + 0.1875f, Z, 0, 0.375f, 0, 0, 0, 1, 1, Block, 0, 2.666667f, 0.09375f, 1, 1.625f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 0.1875f, Y, Z + 1, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4609375f, 2.4375f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z + 1, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.390625f, 2.8125f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 4: Renderer.GenFace(X + 1, Y + 0.1875f, Z + 1, 0, 0.375f, 0, 0, 0, -1, -3, Block, 0, 0.375f, 0.25f, 1.046875f, 2.8125f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z + 0.1875f, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4140625f, 2.25f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z + 1, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.390625f, 2.625f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 5: Renderer.GenFace(X + 0.1875f, Y, Z + 0.1875f, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4375f, 2.625f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 0.1875f, Y, Z + 1, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4609375f, 2.25f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 6: Renderer.GenFace(X + 1, Y + 0.1875f, Z, 0, 0.375f, 0, 0, 0, 1, 0, Block, 0, 2.666667f, 0.09375f, 1.171875f, 2.3125f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 0.1875f, Y, Z + 1, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4609375f, 2.625f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z + 1, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.390625f, 2.25f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; case 7: Renderer.GenFace(X + 1, Y + 0.1875f, Z, 0, 0.375f, 0, 0, 0, 1, 1, Block, 0, 2.666667f, 0.09375f, 1, 2.3125f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z + 0.1875f, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4140625f, 2.625f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 0.1875f, Y, Z + 0.1875f, 0, 0, -0.1875f, 0, 0.1875f, 0, 0, Block, 0, 1, 0.046875f, 1.4375f, 2.25f); LightingHelper.SetLightWest(WorldX + 1, WorldY, WorldZ, Block.Biomed, false); break; } }