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

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