Struct MaterialChannel
Contents
[
Hide
]MaterialChannel structure
Represents a material sub-channel, which usually contains a texture. Use Channels and FindChannel to access it.
public struct MaterialChannel
Properties
| Name | Description |
|---|---|
| Color { get; set; } | |
| HasDefaultContent { get; } | |
| Key { get; } | |
| LogicalParent { get; } | |
| Parameter { get; set; } | Gets or sets the Vector4 parameter of this channel. The meaning of the X, Y. Z and W depend on the type of channel. |
| Parameters { get; } | |
| Texture { get; } | Gets the Texture instance used by this Material, or null. |
| TextureCoordinate { get; } | Gets the index of texture’s TEXCOORD_[index] attribute used for texture coordinate mapping. |
| TextureSampler { get; } | |
| TextureTransform { get; } |
Methods
| Name | Description |
|---|---|
| Equals(MaterialChannel) | |
| override Equals(object) | |
| GetFactor(string) | |
| override GetHashCode() | |
| SetFactor(string, float) | |
| SetTexture(int, Texture) | |
| SetTexture(int, ImageGlb, ImageGlb, TextureWrapMode, TextureWrapMode, TextureMipMapFilter, TextureInterpolationFilter) | |
| SetTransform(Vector2, Vector2, float, int?) |
Remarks
This structure is not part of the gltf schema, but wraps several components of the material to have an homogeneous and easy to use API.
See Also
- namespace Aspose.CAD.FileFormats.GLB
- assembly Aspose.CAD