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