SimplePbrMaterial class¶
Represents a material that is defined by a single base color and by scalar shading parameters, instead of by textures.
Namespace: Eremex.AvaloniaUI.Controls3D
Assembly: Eremex.Avalonia.Controls3D.dll
NuGet Package: Eremex.Avalonia.Controls3D
Declaration¶
Public Members¶
| name | description |
|---|---|
| SimplePbrMaterial() | Initializes a new instance of the SimplePbrMaterial class with the default shading parameters. |
| SimplePbrMaterial(…) | Initializes a new instance of the SimplePbrMaterial class with the specified base color and key. |
| Albedo { get; set; } | Gets or sets the base color of the surface. The default value is gray. |
| Alpha { get; set; } | Gets or sets the opacity of the material. The default value is one, which makes the material opaque. A value below one makes the material transparent. |
| AmbientOcclusion { get; set; } | Gets or sets the factor that dims the ambient, image-based lighting applied to the surface. The default value is one, which leaves the ambient lighting unchanged. |
| Emission { get; set; } | Gets or sets the color of the light that the material emits by itself. The default value is black, which means the material emits no light. |
| Metallic { get; set; } | Gets or sets whether the surface behaves as a metal. The default value is zero, which makes the surface a dielectric that does not reflect the environment map. |
| Roughness { get; set; } | Gets or sets how rough the surface is. Zero produces a mirror-like surface, and one produces a fully diffuse surface. The default value is 0.2. |
See Also¶
- class Material
- namespace Eremex.AvaloniaUI.Controls3D