Bitbybit Docs
    Preparing search index...

    Class PBRMetallicRoughnessDto (Inputs.BabylonMaterial)

    Feeds babylon.material.pbrMetallicRoughness.create: the name, colors, metallic and roughness values, opacity, culling and depth offset of a new material.

    Index

    Constructors

    • Parameters

      • Optionalname: string
      • OptionalbaseColor: string
      • OptionalemissiveColor: string
      • Optionalmetallic: number
      • Optionalroughness: number
      • Optionalalpha: number
      • OptionalbackFaceCulling: boolean
      • OptionalzOffset: number

      Returns PBRMetallicRoughnessDto

    Properties

    name: string

    Name the material is known by in the scene

    Custom Material
    
    baseColor: string

    Hex color of the surface under white light

    #0000ff
    
    emissiveColor?: string

    Hex color the surface glows with on its own, regardless of lighting; black glows not at all

    #000000
    
    metallic: number

    How metallic the surface is, from 0 for paint or plastic to 1 for bare metal

    0.6
    

    0

    1

    0.1

    roughness: number

    How rough the surface is, from 0 for a mirror finish to 1 for fully matte

    0.5
    

    0

    1

    0.1

    alpha: number

    Opacity from 0 for invisible to 1 for solid; values between make the surface see-through

    1
    

    0

    1

    0.1

    backFaceCulling: boolean

    When true, the back of each face is skipped, which is faster; false shows both sides of open meshes

    false
    
    zOffset: number

    Depth offset that pulls the surface toward or away from the camera when it fights with another at the same depth; 0 for none

    0
    

    -Infinity

    Infinity

    0.1