Class Material
Contents
[
Hide
]Material class
The material appearance of a primitive.
public sealed class Material : LogicalChildOfRoot
Properties
| Name | Description |
|---|---|
| Alpha { get; set; } | Gets or sets the AlphaMode. |
| AlphaCutoff { get; set; } | Gets or sets the AlphaCutoff value. It needs to be used in combination with Alpha = MASK. |
| Channels { get; } | Gets a collection of MaterialChannel elements available in this Material instance. |
| DoubleSided { get; set; } | Gets or sets a value indicating whether this Material will render as Double Sided. Default value: False |
| Extensions { get; } | Gets a collection of JsonSerializable instances. |
| Extras { get; set; } | Gets or sets the extras content of this instance. |
| IndexOfRefraction { get; set; } | Gets or sets the index of refraction. |
| LogicalIndex { get; } | Gets the zero-based index of this object in the Logical resources of GlbImage. |
| LogicalParent { get; } | Gets the GlbImage instance that owns this object. |
| Name { get; set; } | Gets or sets the display text name, or null. |
| Unlit { get; } | Gets a value indicating whether this Material instance has Unlit extension. |
Methods
| Name | Description |
|---|---|
| FindChannel(string) | Finds an instance of MaterialChannel |
| GetExtension<T>() | |
| InitializePBRMetallicRoughness(params string[]) | Initializes this Material instance with PBR Metallic Roughness attributes. |
| InitializePBRSpecularGlossiness(bool) | Initializes this Material instance with PBR Specular Glossiness attributes. |
| InitializeUnlit() | Initializes this Material instance with Unlit attributes. |
| RemoveExtensions<T>() | |
| RemoveExtensions<T>(T) | |
| SetExtension<T>(T) | |
| UseExtension<T>() |
See Also
- class LogicalChildOfRoot
- namespace Aspose.CAD.FileFormats.GLB
- assembly Aspose.CAD