Class TextureSlot
TextureSlot class
Texture slot in Material
, can be enumerated through material instance.
public class TextureSlot
Properties
Name | Description |
---|---|
SlotName { get; } | The slot name that indicates where this texture will be bounded to. |
Texture { get; } | The texture that will be bounded to the material. |
Examples
var mat = new LambertMaterial();
var tex = new Texture();
tex.FileName = "diffuse.png";
mat.SetTexture(Material.MapDiffuse, tex);
foreach(var slot in mat)
{
Console.WriteLine($"Texture slot {slot.SlotName} = {slot.Texture}");
}
See Also
- namespace Aspose.ThreeD.Shading
- assembly Aspose.3D