pub struct PbrMetallicRoughness<'a> { /* private fields */ }
Expand description

A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.

Implementations

Returns the material’s base color factor.

The default value is [1.0, 1.0, 1.0, 1.0].

Returns the base color texture. The texture contains RGB(A) components in sRGB color space.

Returns the metalness factor of the material.

The default value is 1.0.

Returns the roughness factor of the material.

  • A value of 1.0 means the material is completely rough.
  • A value of 0.0 means the material is completely smooth.

The default value is 1.0.

The metallic-roughness texture.

The metalness values are sampled from the B channel. The roughness values are sampled from the G channel. These values are linear. If other channels are present (R or A), they are ignored for metallic-roughness calculations.

Optional application specific data.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.