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

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