Material.SetTexture
Material.SetTexture method
Sets the texture to specified slot
public void SetTexture(string slotName, TextureBase texture)
Parameter | Type | Description |
---|---|---|
slotName | String | Slot name. |
texture | TextureBase | Texture. |
Examples
var mat = new LambertMaterial();
var tex = new Texture();
tex.FileName = "diffuse.png";
mat.SetTexture(Material.MapNormal, tex);
See Also
- class TextureBase
- class Material
- namespace Aspose.ThreeD.Shading
- assembly Aspose.3D