PbrMaterial
PbrMaterial — PbrMaterial klasa. Nasljeđuje od: Material.
| Name | Type | Access | Description |
|---|---|---|---|
Transparency | double | Read/Write | Gets or sets the transparency. |
NormalTexture | TextureBase | Read/Write | Gets or sets the normal texture. |
SpecularTexture | TextureBase | Read/Write | Gets or sets the specular texture. |
AlbedoTexture | TextureBase | Read/Write | Gets or sets the albedo texture. |
Albedo | Vector3 | Read/Write | Gets or sets the albedo. |
OcclusionTexture | TextureBase | Read/Write | Gets or sets the occlusion texture. |
OcclusionFactor | double | Read/Write | Gets or sets the occlusion factor. |
MetallicFactor | double | Read/Write | Gets or sets the metallic factor. |
RoughnessFactor | double | Read/Write | Gets or sets the roughness factor. |
MetallicRoughness | TextureBase | Read/Write | Gets or sets the metallic roughness. |
EmissiveTexture | TextureBase | Read/Write | Gets or sets the emissive texture. |
EmissiveColor | Vector3 | Read/Write | Gets or sets the emissive color. |
MapSpecular | string | Read | Gets the map specular. |
MapDiffuse | string | Read | Gets the map diffuse. |
MapEmissive | string | Read | Gets the map emissive. |
MapAmbient | string | Read | Gets the map ambient. |
MapNormal | string | Read | Gets the map normal. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
| Signature | Description |
|---|---|
PbrMaterial() | Creates a new PbrMaterial instance with default values |
PbrMaterial(albedo: Vector3) | The albedo color |
FromMaterial(material: Material) | A new PbrMaterial instance |
Material() | |
GetTexture(slotName: string) | Gets the texture from the specified slot, it can be material’s property name or shader’s parameter name. |
SetTexture(slotName: string, texture: TextureBase) | Sets the texture to specified slot. |
ToString() | Formats object to string. |
GetEnumerator() | Gets the enumerator to enumerate internal texture slots. |
A3DObject() | |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
Nema javno dokumentiranih metoda u izvoru.