Beispiel #1
0
 public static GeometryAttribute <int> GetAttributeSubGeoIndexOffset(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.SubGeoIndexOffset);
Beispiel #2
0
 public static GeometryAttribute <Matrix4x4> GetAttributeInstanceTransforms(this IGeometryAttributes self) => self.GetAttribute <Matrix4x4>(CommonAttributes.InstanceTransforms);
Beispiel #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>();
Beispiel #5
0
 public static GeometryAttribute <Vector3> GetAttributePosition(this IGeometryAttributes self) => self.GetAttribute <Vector3>(CommonAttributes.Position);
Beispiel #6
0
 public static GeometryAttribute <Vector3> GetAttributeVertexNormal(this IGeometryAttributes self) => self.GetAttribute <Vector3>(CommonAttributes.VertexNormal);
Beispiel #7
0
 public static GeometryAttribute <Vector4> GetAttributeMaterialColor(this IGeometryAttributes self) => self.GetAttribute <Vector4>(CommonAttributes.MaterialColor);
Beispiel #8
0
 public static GeometryAttribute <int> GetAttributeObjectFaceSize(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.ObjectFaceSize);
Beispiel #9
0
 public static GeometryAttribute <int> GetAttributeShapeVertexOffset(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.ShapeVertexOffset);
Beispiel #10
0
 public static GeometryAttribute <float> GetAttributeShapeWidth(this IGeometryAttributes self) => self.GetAttribute <float>(CommonAttributes.ShapeWidth);
Beispiel #11
0
 public static GeometryAttribute <Vector3> GetAttributeShapeVertex(this IGeometryAttributes self) => self.GetAttribute <Vector3>(CommonAttributes.ShapeVertex);
Beispiel #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));
Beispiel #14
0
 public static GeometryAttribute <int> GetAttributeInstanceGeometries(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.InstanceGeometries);
Beispiel #15
0
 public static GeometryAttribute <float> GetAttributeMaterialSmoothness(this IGeometryAttributes self) => self.GetAttribute <float>(CommonAttributes.MaterialSmoothness);
Beispiel #16
0
 public static GeometryAttribute <Vector3> GetAttributeLineTangentOut(this IGeometryAttributes self) => self.GetAttribute <Vector3>(CommonAttributes.LineTangentOut);
Beispiel #17
0
 public static GeometryAttribute <int> GetAttributeSubmeshMaterial(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.SubmeshMaterial);
Beispiel #18
0
 public static GeometryAttribute <int> GetAttributeIndex(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.Index);
Beispiel #19
0
 public static GeometryAttribute <float> GetAttributeVertexSelectionWeight(this IGeometryAttributes self) => self.GetAttribute <float>(CommonAttributes.VertexSelectionWeight);
Beispiel #20
0
 public static GeometryAttribute <Vector2> GetAttributeVertexUv(this IGeometryAttributes self) => self.GetAttribute <Vector2>(CommonAttributes.VertexUv);
Beispiel #21
0
 public static GeometryAttribute <int> GetAttributeFaceMaterialId(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.FaceMaterialId);
Beispiel #22
0
 public static GeometryAttribute <Vector4> GetAttributeVertexColor(this IGeometryAttributes self) => self.GetAttribute <Vector4>(CommonAttributes.VertexColor);
Beispiel #23
0
 public static GeometryAttribute <int> GetAttributeFaceGroup(this IGeometryAttributes self) => self.GetAttribute <int>(CommonAttributes.FaceGroup);
Beispiel #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);