Material.SetTexture
Material.SetTexture method
将纹理设置到指定槽。
public void SetTexture(string slotName, TextureBase texture)
| 参数 | 类型 | 描述 |
|---|---|---|
| slotName | 字符串 | 槽名称。 |
| 纹理 | TextureBase | Texture. |
示例
var mat = new LambertMaterial();
var tex = new Texture();
tex.FileName = "diffuse.png";
mat.SetTexture(Material.MapNormal, tex);
另请参见
- class TextureBase
- class Material
- namespace Aspose.ThreeD.Shading
- assembly Aspose.3D