Пример #1
0
 private void SetArrayForChannel <T>(Mesh.InternalShaderChannel channel, T[] values)
 {
     this.SetSizedArrayForChannel(channel, Mesh.InternalVertexChannelType.Float, Mesh.DefaultDimensionForChannel(channel), values, this.SafeLength(values));
 }
Пример #2
0
 private void SetListForChannel <T>(Mesh.InternalShaderChannel channel, List <T> values)
 {
     this.SetSizedArrayForChannel(channel, Mesh.InternalVertexChannelType.Float, Mesh.DefaultDimensionForChannel(channel), Mesh.ExtractArrayFromList(values), this.SafeLength <T>(values));
 }
Пример #3
0
 private T[] GetAllocArrayFromChannel <T>(Mesh.InternalShaderChannel channel)
 {
     return(this.GetAllocArrayFromChannel <T>(channel, Mesh.InternalVertexChannelType.Float, Mesh.DefaultDimensionForChannel(channel)));
 }
Пример #4
0
 public void GetColors(List <Color> colors)
 {
     if (colors == null)
     {
         throw new ArgumentNullException("The result colors list cannot be null.", "colors");
     }
     this.GetListForChannel <Color>(colors, this.vertexCount, Mesh.InternalShaderChannel.Color, Mesh.DefaultDimensionForChannel(Mesh.InternalShaderChannel.Color));
 }
Пример #5
0
 public void GetTangents(List <Vector4> tangents)
 {
     if (tangents == null)
     {
         throw new ArgumentNullException("The result tangents list cannot be null.", "tangents");
     }
     this.GetListForChannel <Vector4>(tangents, this.vertexCount, Mesh.InternalShaderChannel.Tangent, Mesh.DefaultDimensionForChannel(Mesh.InternalShaderChannel.Tangent));
 }
Пример #6
0
 public void GetNormals(List <Vector3> normals)
 {
     if (normals == null)
     {
         throw new ArgumentNullException("The result normals list cannot be null.", "normals");
     }
     this.GetListForChannel <Vector3>(normals, this.vertexCount, Mesh.InternalShaderChannel.Normal, Mesh.DefaultDimensionForChannel(Mesh.InternalShaderChannel.Normal));
 }
Пример #7
0
 public void GetVertices(List <Vector3> vertices)
 {
     if (vertices == null)
     {
         throw new ArgumentNullException("The result vertices list cannot be null.", "vertices");
     }
     this.GetListForChannel <Vector3>(vertices, this.vertexCount, Mesh.InternalShaderChannel.Vertex, Mesh.DefaultDimensionForChannel(Mesh.InternalShaderChannel.Vertex));
 }