public override void Initialize() { Visible = true; Renderer.GenFace(X + 1, Y, Z + 1, -1, 0, -1, 0, 1, 0, 0, Block, 0); LightingHelper.SetLightUp(WorldX, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z, 1, 0, 1, 0, 1, 0, 0, Block, 0); LightingHelper.SetLightUp(WorldX, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X, Y, Z + 1, 1, 0, -1, 0, 1, 0, 0, Block, 0); LightingHelper.SetLightUp(WorldX, WorldY, WorldZ, Block.Biomed, false); Renderer.GenFace(X + 1, Y, Z, -1, 0, 1, 0, 1, 0, 0, Block, 0); LightingHelper.SetLightUp(WorldX, WorldY, WorldZ, Block.Biomed, false); }
public override void RenderUpSide() { Visible = true; if (Renderer.IsRenderNeed(Block, BlockId, _upNeighborId)) { Renderer.GenFace(X, Y + _level, Z, 0, 0, 1, 1, 0, 0, 1, Block, 3); LightingHelper.SetLightUp(WorldX, WorldY + 1, WorldZ, Block.Biomed); } }
public override void RenderUpSide() { if (Renderer.IsRenderNeed(Block, BlockId, GetNeighbor(0, 1, 0))) { Visible = true; Renderer.GenFace(X, Y + 1, Z, 0, 0, 1, 1, 0, 0, (int)Block.RenderParam, Block, 3); LightingHelper.SetLightUp(WorldX, WorldY + 1, WorldZ, Block.Biomed); } }
public override void RenderUpSide() { Visible = true; if (Block.RenderParam < 4) { Renderer.GenFace(X, Y + 0.5625f, Z, 0, 0, 1, 1, 0, 0, (int)Block.RenderParam, Block, 0, 1, 0.25f, 1.046875f, 1.625f); } else { Renderer.GenFace(X, Y + 0.5625f, Z, 0, 0, 1, 1, 0, 0, (int)Block.RenderParam, Block, 0, 1, 0.25f, 1.046875f, 2.3125f); } LightingHelper.SetLightUp(WorldX, WorldY + 1, WorldZ, Block.Biomed, false); }
public override void RenderUpSide() { Visible = true; if (Block.RenderParam > 15) { Renderer.GenFace(X, Y, Z, 0, 1, 1, 1, 0, 0, (int)Block.RenderParam, Block, 0); } else if (Block.RenderParam > 11) { Renderer.GenFace(X, Y + 1, Z, 0, -1, 1, 1, 0, 0, (int)Block.RenderParam, Block, 0); } else if (Block.RenderParam > 7) { Renderer.GenFace(X, Y, Z, 0, 0, 1, 1, 1, 0, (int)Block.RenderParam, Block, 0); } else if (Block.RenderParam > 3) { Renderer.GenFace(X, Y + 1, Z, 0, 0, 1, 1, -1, 0, (int)Block.RenderParam, Block, 0); } else { Renderer.GenFace(X, Y, Z, 0, 0, 1, 1, 0, 0, (int)Block.RenderParam, Block, 0); } LightingHelper.SetLightUp(WorldX, WorldY, WorldZ, Block.Biomed, false); }