public void SetWireframe(bool Wireframe) { foreach (var Msh in GetMeshes()) { Msh.SetWireframe(Wireframe); } }
private void Update() { Msh.Init(ref mesh, go); switch (type) { case PrimitiveShapeType.Box: Msh.Box(ref mesh, boxSize); break; case PrimitiveShapeType.Cone: Msh.Cone(ref mesh, coneVertices, coneRadius1, coneRadius2, coneDepth, isVertexNormal); break; case PrimitiveShapeType.Cylinder: Msh.Cone(ref mesh, cylinderVertices, cylinderRadius, cylinderRadius, cylinderDepth, isVertexNormal); break; case PrimitiveShapeType.UvSphere: Msh.UvSphere(ref mesh, uvSphereSegments, uvSphereRings, uvSphereRadius, isVertexNormal); break; case PrimitiveShapeType.IcoSphere: Msh.IcoSphere(ref mesh, icoSphereSubdivisions, icoSphereRadius); break; case PrimitiveShapeType.Torus: Msh.Torus(ref mesh, torusMajorSegments, torusMinorSegments, torusMajorRadius, torusMinorRadius, isVertexNormal); break; } Msh.UpdTf(ref mesh, t); }
public void DrawTransparent() { foreach (var Msh in MeshList) { if (Msh.Material.IsTransparent) { Msh.Draw(Position, Scale, Rotation); } } }
public void UpdateMesh() { Msh.Init(ref mesh, go); Msh.RotModel(ref mesh, isFill, isDisUv, n, points, t); }