Esempio n. 1
0
 internal PrettySubMesh(uint firstIndex, uint indexCount, PrimitiveType topology, uint triangleCount, uint firstVertex, uint vertexCount, AABB boundingBox, [NotNull] TexturedMaterial material)
 {
     FirstIndex    = firstIndex;
     IndexCount    = indexCount;
     Topology      = topology;
     TriangleCount = triangleCount;
     FirstVertex   = firstVertex;
     VertexCount   = vertexCount;
     BoundingBox   = boundingBox;
     Material      = material;
 }
Esempio n. 2
0
 internal PrettySubMesh(uint firstIndex, [NotNull] AssetStudio.SubMesh mesh, [NotNull] TexturedMaterial material)
 {
     FirstIndex    = firstIndex;
     IndexCount    = mesh.indexCount;
     Topology      = (PrimitiveType)mesh.topology;
     TriangleCount = mesh.triangleCount;
     FirstVertex   = mesh.firstVertex;
     VertexCount   = mesh.vertexCount;
     BoundingBox   = new AABB(mesh.localAABB);
     Material      = material;
 }