本文整理汇总了C#中MeshData.BuildSideEast方法的典型用法代码示例。如果您正苦于以下问题:C# MeshData.BuildSideEast方法的具体用法?C# MeshData.BuildSideEast怎么用?C# MeshData.BuildSideEast使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MeshData
的用法示例。
在下文中一共展示了MeshData.BuildSideEast方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Blockdata
/// <summary>
/// Sends data about this block to MeshData so it can be rendered
/// </summary>
/// <param name="planetchunk">The PlanetChunk that contains this block</param>
/// <param name="x">The X coordinate of the Block</param>
/// <param name="y">The Y coordinate of the Block</param>
/// <param name="z">The Z coordinate of the Block</param>
/// <param name="meshData">The MeshData object the mesh is written to</param>
/// <returns></returns>
public MeshData Blockdata(PlanetChunk planetchunk, int x, int y, int z, MeshData meshData)
{
if (this.type != BlockTypes.typeEmpty)
{
GetSolid(planetchunk, x, y, z, meshData);
meshData.useRenderDataForCol = true;
if (solidsides.up == false)
{
meshData.BuildSideUp(x, y, z, this.type);
}
if (solidsides.down == false)
{
meshData.BuildSideDown(x, y, z, this.type);
}
if (solidsides.east == false)
{
meshData.BuildSideEast(x, y, z, this.type);
}
if (solidsides.west == false)
{
meshData.BuildSideWest(x, y, z, this.type);
}
if (solidsides.north == false)
{
meshData.BuildSideNorth(x, y, z, this.type);
}
if (solidsides.south == false)
{
meshData.BuildSideSouth(x, y, z, this.type);
}
if (type.light == true)
{
meshData.Light(type.light);
if (!solidsides.up && !solidsides.down && !solidsides.east && !solidsides.west && !solidsides.north && !solidsides.south)
{
meshData.AddLight(x, y, z, type.LR, type.LG, type.LB, type.LA, type.LightRange, type.LightIntensity);
}
}
return meshData;
}
return meshData;
}