Skip to main content

PBR Material Shaders

Material properties that allow texture inputs will multiply the texture sample by the corresponding material parameter's floating point value to determine the final value.

Parameters

Base

  • albedo

    vec3

    Base color of the material

  • albedoTexture

    texture2d_ref

    Texture map for base color

  • roughness

    float

    Microscopic surface roughness (0 = smooth mirror, 1 = rough diffuse)

  • roughnessTexture

    texture2d_ref

    Texture map for surface roughness

  • metallic

    float

    Metallic appearance (0 = non-metallic/dielectric, 1 = metallic)

  • metallicTexture

    texture2d_ref

    Texture map for metallic property

  • ambientOcclusion

    float

    Intensity of ambient lighting on surface

  • ambientOcclusionTexture

    texture2d_ref

    Texture map for ambient occlusion

  • emission

    vec3

    Light emitted by surface

  • emissionTexture

    texture2d_ref

    Texture map for emissive areas

  • emissionIntensity

    float

    Multiplier for emission brightness

  • normalTexture

    texture2d_ref

    Normal map for surface detail and bump mapping

  • flipNormalTextureGreenChannel

    int32_t

    Green channel inversion for normal map format compatibility

  • flipNormalTextureBlueChannel

    int32_t

    Blue channel inversion for normal map format compatibility

  • scale

    vec2

    UV texture tiling scale

  • offset

    vec2

    UV texture offset for positioning

  • opacity

    float

    Opacity level for transparent materials

  • opacityTexture

    texture2d_ref

    Texture map for transparency

  • indexOfRefraction

    float

    Light refraction amount for transparent materials (1.5 for glass)

Clear Coat

  • clearCoatNormalTexture

    texture2d_ref

    Normal map for clear coat layer

  • clearCoatRoughnessTexture

    texture2d_ref

    Roughness texture for clear coat layer

  • clearCoatRoughness

    float

    Roughness of clear coat layer

  • clearCoatNormalTexScale

    float

    Clear coat normal map tiling scale

  • clearCoatStrength

    float

    Strength of coating layer effect

Triplanar

  • sharpness

    float

    Transition hardness between projection axes

  • rotationDeg

    vec3

    Texture rotation angle for each projection axis

  • triplanarBlendMode

    int32_t

    Blending mode for combining triplanar projections

  • triplanarParallax

    int32_t

    Parallax mapping toggle for triplanar projection

  • triplanarUseLocalSpace

    int32_t

    Space mode for triplanar projection (world or local)

Anisotropy

  • anisotropyStrength

    float

    Strength of directional reflection (for brushed metal)

  • anisotropyRotation

    float

    Rotation angle of anisotropic highlight direction

  • anisotropyTexture

    texture2d_ref

    Texture map for anisotropic properties

Parallax

  • heightMapScale

    float

    Depth scale for parallax displacement effect

  • heightMapTexture

    texture2d_ref

    Height map texture for parallax mapping

Sheen

  • sheenColor

    vec3

    Color of fabric-like sheen reflection

  • sheenColorIntensity

    float

    Strength of sheen color effect

  • sheenColorTexture

    texture2d_ref

    Texture map for sheen color

  • sheenRoughness

    float

    Roughness of sheen reflection layer

  • sheenRoughnessTexture

    texture2d_ref

    Texture map for sheen roughness