LuciadCPillar C# 2026.1.02
Loading...
Searching...
No Matches
Luciad.Layers.Styles.PbrShadingModel Class Referencesealed

Shading model that applies physically based rendering (PBR) to a mesh. More...

Inheritance diagram for Luciad.Layers.Styles.PbrShadingModel:
Luciad.Layers.Styles.ShadingModel

Classes

class  Builder
 Builder for a PbrShadingModel. More...

Public Member Functions

Luciad.Layers.Styles.PbrShadingModel.Builder AsBuilder ()
 Creates a builder pre-filled with this shading model's parameters.
Public Member Functions inherited from Luciad.Layers.Styles.ShadingModel
void Dispose ()

Static Public Member Functions

static Luciad.Layers.Styles.PbrShadingModel.Builder NewBuilder ()
 Creates a new builder with the default PBR parameters.

Properties

bool IsDirectionalLightingEnabled [get]
 Whether PBR shading includes directional lighting.
bool IsIgnoreUnlitPropertyEnabled [get]
 Whether a material's unlit property is ignored so that PBR shading is still applied to it.
bool IsImageBasedLightingEnabled [get]
 Whether PBR shading includes image-based lighting (IBL).
double LightIntensity [get]
 The light intensity used for the PBR lighting, a linear multiplier on the resulting shading.
double MetallicFactor [get]
 The metallic factor applied to PBR materials.
double MetallicOffset [get, set]
 The metallic offset applied to PBR materials.
double RoughnessFactor [get]
 The roughness factor applied to PBR materials.
double RoughnessOffset [get, set]
 The roughness offset applied to PBR materials.

Detailed Description

Shading model that applies physically based rendering (PBR) to a mesh.

This is the default shading model. It shades PBR assets, such as glTF metallic-roughness materials (see https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#metallic-roughness-material), using the map's light (see LightEffect) and environment map (see EnvironmentMapEffect).

Since
2026.1

Member Function Documentation

◆ AsBuilder()

Luciad.Layers.Styles.PbrShadingModel.Builder Luciad.Layers.Styles.PbrShadingModel.AsBuilder ( )
inline

Creates a builder pre-filled with this shading model's parameters.

Returns
a builder pre-filled with this shading model's parameters.

◆ NewBuilder()

Luciad.Layers.Styles.PbrShadingModel.Builder Luciad.Layers.Styles.PbrShadingModel.NewBuilder ( )
inlinestatic

Creates a new builder with the default PBR parameters.

Returns
a new builder.

Property Documentation

◆ IsDirectionalLightingEnabled

bool Luciad.Layers.Styles.PbrShadingModel.IsDirectionalLightingEnabled
get

Whether PBR shading includes directional lighting.

[get]

Returns whether PBR shading includes directional lighting. This is lighting coming from the light that is configured on the map. When true (the default), the map's light (see LightEffect) adds a directional diffuse and specular contribution to PBR-shaded surfaces.

See also
PbrShadingModel.Builder.DirectionalLighting

◆ IsIgnoreUnlitPropertyEnabled

bool Luciad.Layers.Styles.PbrShadingModel.IsIgnoreUnlitPropertyEnabled
get

Whether a material's unlit property is ignored so that PBR shading is still applied to it.

[get]

Returns whether a material's unlit property is ignored so that PBR shading is still applied to it. By default this is false: a glTF material that carries the KHR_materials_unlit extension is left unshaded, showing only its base color regardless of the map's light. When true, that extension is ignored and the material is shaded like any other PBR material.

See also
PbrShadingModel.Builder.IgnoreUnlitProperty

◆ IsImageBasedLightingEnabled

bool Luciad.Layers.Styles.PbrShadingModel.IsImageBasedLightingEnabled
get

Whether PBR shading includes image-based lighting (IBL).

[get]

Returns whether PBR shading includes image-based lighting (IBL). When true (the default), the map's environment map (see EnvironmentMapEffect) provides ambient and reflection lighting to PBR-shaded surfaces. IBL only contributes when a reflection map is configured on the map.

See also
PbrShadingModel.Builder.ImageBasedLighting

◆ LightIntensity

double Luciad.Layers.Styles.PbrShadingModel.LightIntensity
get

The light intensity used for the PBR lighting, a linear multiplier on the resulting shading.

[get]

Returns the light intensity used for the PBR lighting, a linear multiplier on the resulting shading. A value of 1 (the default) leaves the shading unchanged, values above 1 brighten it, and values below 1 darken it. A value of 0 removes the PBR light contribution entirely. The value must not be negative.

See also
PbrShadingModel.Builder.LightIntensity

◆ MetallicFactor

double Luciad.Layers.Styles.PbrShadingModel.MetallicFactor
get

The metallic factor applied to PBR materials.

[get]

Returns the metallic factor applied to PBR materials. The final metallic value is the asset's own metallic (its material factor times any metallic-roughness texture) multiplied by this factor and then increased by the metallic offset. A factor of 1 (the default) leaves the asset's own metallic unchanged before the offset is added.

See also
PbrShadingModel.Builder.Metallic

◆ MetallicOffset

double Luciad.Layers.Styles.PbrShadingModel.MetallicOffset
getset

The metallic offset applied to PBR materials.

[get]

Returns the metallic offset applied to PBR materials.

See also
PbrShadingModel.Builder.Metallic

◆ RoughnessFactor

double Luciad.Layers.Styles.PbrShadingModel.RoughnessFactor
get

The roughness factor applied to PBR materials.

[get]

Returns the roughness factor applied to PBR materials. The final roughness value is the asset's own roughness (its material factor times any metallic-roughness texture) multiplied by this factor and then increased by the roughness offset. A factor of 1 (the default) leaves the asset's own roughness unchanged before the offset is added.

See also
PbrShadingModel.Builder.Roughness

◆ RoughnessOffset

double Luciad.Layers.Styles.PbrShadingModel.RoughnessOffset
getset

The roughness offset applied to PBR materials.

[get]

Returns the roughness offset applied to PBR materials.

See also
PbrShadingModel.Builder.Roughness