Skip to content

TexturedPbrMaterial class

Represents a material that is defined by textures, instead of by scalar shading parameters.

Namespace: Eremex.AvaloniaUI.Controls3D
Assembly: Eremex.Avalonia.Controls3D.dll
NuGet Package: Eremex.Avalonia.Controls3D

Declaration

public class TexturedPbrMaterial : Material

Public Members

name description
TexturedPbrMaterial() The default constructor.
Albedo { get; set; } Gets or sets the texture that provides the base color of the surface.
Alpha { get; set; } Gets or sets the texture that provides the opacity of the material. The control reads the first byte of each pixel.
AmbientOcclusion { get; set; } Gets or sets the texture whose blue channel dims the ambient, image-based lighting applied to the surface.
Emission { get; set; } Gets or sets the texture that provides the color of the light the material emits by itself.
Metallic { get; set; } Gets or sets the texture whose red channel defines whether the surface behaves as a metal.
Normal { get; set; } Gets or sets the normal map that perturbs the surface normals.
Roughness { get; set; } Gets or sets the texture whose green channel defines how rough the surface is.

Remarks

All maps must have the same pixel size, which is taken from the Albedo map, or from the Emission map if Albedo is not set. At least one of the two must be set.

See Also

Used in articles