Esempio n. 1
0
            public override Vector4[] GetV4(VertexDataDestination trg)
            {
                if (trg.GetType() == typeof(VertexTangentTrg))
                {
                    CurMeshDta.mesh.RecalculateTangents();
                    return(null);
                }

                return(v4s);
            }
Esempio n. 2
0
 public override Vector3[] GetV3(VertexDataDestination trg) => _vertices;
Esempio n. 3
0
 public override Vector2[] GetV2(VertexDataDestination trg) => v2s;
Esempio n. 4
0
 public VertexDataLink(VertexDataDestination ntrg)
 {
     Destination = ntrg;
     InitVals();
     ntrg.SetDefaults(this);
 }
Esempio n. 5
0
 public static bool IsDestinationType <T>(this VertexDataDestination vd) where T : VertexDataDestination => vd.GetType() == typeof(T);
Esempio n. 6
0
 public override Vector3[] GetV3(VertexDataDestination trg)
 {
     return(edges);
 }
Esempio n. 7
0
 public virtual Vector4[] GetV4(VertexDataDestination trg)
 {
     Debug.Log("Mesh Data type " + this.GetType() + " does not provide Vector4 array");
     return(null);
 }
Esempio n. 8
0
 public override Vector4[] GetV4(VertexDataDestination trg) => _edges;
Esempio n. 9
0
 public override Vector4[] GetV4(VertexDataDestination trg)
 {
     return(textureNumbers);
 }
Esempio n. 10
0
 public override Vector4[] GetV4(VertexDataDestination trg) => _shadows;
Esempio n. 11
0
 public override Vector3[] GetV3(VertexDataDestination trg) => v3norms;
Esempio n. 12
0
 public override Vector3[] GetV3(VertexDataDestination trg)
 {
     GenerateIfNull();
     return(v3norms);
 }