예제 #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);