示例#1
0
 public static GeometryAttribute <int> GetAttributeSubGeoIndexOffset(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.SubGeoIndexOffset);
示例#2
0
 public static GeometryAttribute <Matrix4x4> GetAttributeInstanceTransforms(this IGeometryAttributes self) => self.GetAttribute <Matrix4x4>(CommonAttributes.InstanceTransforms);
示例#3
0
 public static GeometryAttribute <Byte4> GetAttributeVertexColor8Bit(this IGeometryAttributes self) => self.GetAttribute <Byte4>(CommonAttributes.VertexColor8Bit);
 public static GeometryAttribute <T> GetAttribute <T>(this IGeometryAttributes g, string attributeName) where T : unmanaged
 => g.GetAttribute(attributeName)?.AsType <T>();
示例#5
0
 public static GeometryAttribute <Vector3> GetAttributePosition(this IGeometryAttributes self) => self.GetAttribute <Vector3>(CommonAttributes.Position);
示例#6
0
 public static GeometryAttribute <Vector3> GetAttributeVertexNormal(this IGeometryAttributes self) => self.GetAttribute <Vector3>(CommonAttributes.VertexNormal);
示例#7
0
 public static GeometryAttribute <Vector4> GetAttributeMaterialColor(this IGeometryAttributes self) => self.GetAttribute <Vector4>(CommonAttributes.MaterialColor);
示例#8
0
 public static GeometryAttribute <int> GetAttributeObjectFaceSize(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.ObjectFaceSize);
示例#9
0
 public static GeometryAttribute <int> GetAttributeShapeVertexOffset(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.ShapeVertexOffset);
示例#10
0
 public static GeometryAttribute <float> GetAttributeShapeWidth(this IGeometryAttributes self) => self.GetAttribute <float>(CommonAttributes.ShapeWidth);
示例#11
0
 public static GeometryAttribute <Vector3> GetAttributeShapeVertex(this IGeometryAttributes self) => self.GetAttribute <Vector3>(CommonAttributes.ShapeVertex);
示例#12
0
 public static GeometryAttribute <int> GetAttributeMeshSubmeshOffset(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.MeshSubmeshOffset);
 public static GeometryAttribute GetOrDefaultAttribute(this IGeometryAttributes self, AttributeDescriptor desc)
 => self.GetAttribute(desc.ToString()) ?? desc.ToDefaultAttribute(self.ExpectedElementCount(desc));
示例#14
0
 public static GeometryAttribute <int> GetAttributeInstanceGeometries(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.InstanceGeometries);
示例#15
0
 public static GeometryAttribute <float> GetAttributeMaterialSmoothness(this IGeometryAttributes self) => self.GetAttribute <float>(CommonAttributes.MaterialSmoothness);
示例#16
0
 public static GeometryAttribute <Vector3> GetAttributeLineTangentOut(this IGeometryAttributes self) => self.GetAttribute <Vector3>(CommonAttributes.LineTangentOut);
示例#17
0
 public static GeometryAttribute <int> GetAttributeSubmeshMaterial(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.SubmeshMaterial);
示例#18
0
 public static GeometryAttribute <int> GetAttributeIndex(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.Index);
示例#19
0
 public static GeometryAttribute <float> GetAttributeVertexSelectionWeight(this IGeometryAttributes self) => self.GetAttribute <float>(CommonAttributes.VertexSelectionWeight);
示例#20
0
 public static GeometryAttribute <Vector2> GetAttributeVertexUv(this IGeometryAttributes self) => self.GetAttribute <Vector2>(CommonAttributes.VertexUv);
示例#21
0
 public static GeometryAttribute <int> GetAttributeFaceMaterialId(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.FaceMaterialId);
示例#22
0
 public static GeometryAttribute <Vector4> GetAttributeVertexColor(this IGeometryAttributes self) => self.GetAttribute <Vector4>(CommonAttributes.VertexColor);
示例#23
0
 public static GeometryAttribute <int> GetAttributeFaceGroup(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.FaceGroup);
示例#24
0
 public static GeometryAttribute <Vector4> GetAttributeVertexTangent(this IGeometryAttributes self) => self.GetAttribute <Vector4>(CommonAttributes.VertexTangent);
 public static GeometryAttribute GetAttributeOrDefault(this IGeometryAttributes g, string name)
 => g.GetAttribute(name) ?? g.DefaultAttribute(name);