LambertMaterial
ภาพรวม
LambertMaterial เป็นคลาสใน Aspose.3D FOSS สําหรับ .NET. ทายาทจาก: Material.
วัสดุสําหรับแบบการร่มสี lambert
หมวดนี้ให้ 11 วิธีในการทํางานกับ LambertMaterial วัตถุในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: A3DObject, FindProperty, GetEnumerator, GetProperty, GetTexture, LambertMaterial, RemoveProperty, SetProperty, SetTexture, ToString. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.3D FOSS for .Net. คุณสมบัติ: AmbientColor, DiffuseColor, EmissiveColor, MapAmbient, MapDiffuse, MapEmissive,และอีก 6 คน.
คุณสมบัติ
| ชื่อ | ประเภท | Access | คําอธิบาย |
|---|---|---|---|
EmissiveColor | Vector3 | อ่าน/เขียน | รับหรือกำหนดค่าสีเรืองแสง |
AmbientColor | Vector3 | อ่าน/เขียน | รับหรือกำหนดค่าสีแสงรอบด้าน |
DiffuseColor | Vector3 | อ่าน/เขียน | รับหรือกำหนดค่าสีกระจาย |
TransparentColor | Vector3 | อ่าน/เขียน | รับหรือกำหนดค่าสีโปร่งใส. |
Transparency | double | อ่าน/เขียน | รับหรือกำหนดค่าปัจจัยความโปร่งใส. |
MapSpecular | string | อ่าน | ใช้ใน GetTexture/SetTexture เพื่อมอบการผนอเนื้อหาของสายตา. |
MapDiffuse | string | อ่าน | ใช้ใน GetTexture/SetTexture เพื่อมอบการผนับแผนภาพแบบกระจาย. |
MapEmissive | string | อ่าน | ใช้ใน GetTexture/SetTexture เพื่อมอบการผนอเนื้อหาที่ปล่อยออกมา. |
MapAmbient | string | อ่าน | ใช้ใน GetTexture/SetTexture เพื่อมอบการแผนภาพของสิ่งแวดล้อม. |
MapNormal | string | อ่าน | ใช้ใน GetTexture/SetTexture เพื่อมอบการผนอเนื้อหาปกติ. |
Name | string | อ่าน/เขียน | รับหรือกำหนดชื่อ. |
Properties | PropertyCollection | อ่าน | รับคอลเลกชันของคุณสมบัติทั้งหมด. |
วิธีการ
| Signature | คําอธิบาย |
|---|---|
LambertMaterial() | เริ่มต้นตัวอย่างใหม่ของคลาส LambertMaterial |
LambertMaterial(name: string) | เริ่มต้นตัวอย่างใหม่ของคลาส LambertMaterial ชื่อวัสดุ |
GetTexture(slotName: string) | /// |
SetTexture(slotName: string, texture: TextureBase) | ตั้งค่า texture ให้กับสล็อตที่ระบุ. |
ToString() | การจัดรูปแบบเป็นข้อตกลงกับ string. |
GetEnumerator() | รับ enumerator เพื่อ enumerate internal texture slots. |
A3DObject() | เริ่มตัวอย่างใหม่ของ A3DObject class โดยไม่มีชื่อ. |
RemoveProperty(property: Property) | ยกย้ายคุณสมบัติไดนามิก. |
GetProperty(property: string) | รับค่าของคุณสมบัติที่ระบุ |
SetProperty(property: string, value: object?) | ตั้งค่าค่าของคุณสมบัติที่ระบุ |
FindProperty(propertyName: string) | หาที่ดินได้. |