private PartMeshInfo renderStair(Vector3Int currPos, int maxY, IHasBlocks blockOwner) { Vector2 blockEffect = BlockEffectMap.Instance.GetBlockEffect(currPos); PartMeshInfo meshInfo = new PartMeshInfo(); RenderRefMesh(BlockMeshes.FullStair, currPos, Rotation, GetTexturePos(), blockEffect, meshInfo); return(meshInfo); }
public override PartMeshInfo GetMesh(Vector3Int thisBlockPos, int maxY, IHasBlocks blockOwner) { return(GenerateMesh(thisBlockPos, maxY, blockOwner)); }
public override PartMeshInfo GetMesh(Vector3Int thisBlockPos, int maxY, IHasBlocks blockOwner) { return(new PartMeshInfo()); // Can't render air yo }
public override PartMeshInfo GetMesh(Vector3Int thisBlockPos, int maxY, IHasBlocks blockOwner) { return(renderStair(thisBlockPos, maxY, blockOwner)); }