الفئة TextureSlot

TextureSlot class

فتحة القوام في Material، يمكن تعدادها من خلال نسخة المادة.

public class TextureSlot

الخصائص

الاسمالوصف
SlotName { get; }اسم الفتحة الذي يحدد إلى أين سيتم ربط هذا القوام.
Texture { get; }القوام الذي سيتم ربطه بالمادة.

أمثلة

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}");
}

انظر أيضًا