コード例 #1
0
ファイル: libTechModel.cs プロジェクト: yarligayan/libTech
 public void SetWireframe(bool Wireframe)
 {
     foreach (var Msh in GetMeshes())
     {
         Msh.SetWireframe(Wireframe);
     }
 }
コード例 #2
0
    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);
    }
コード例 #3
0
ファイル: Model.cs プロジェクト: masums/libTech
 public void DrawTransparent()
 {
     foreach (var Msh in MeshList)
     {
         if (Msh.Material.IsTransparent)
         {
             Msh.Draw(Position, Scale, Rotation);
         }
     }
 }
コード例 #4
0
 public void UpdateMesh()
 {
     Msh.Init(ref mesh, go);
     Msh.RotModel(ref mesh, isFill, isDisUv, n, points, t);
 }