API

Function SpecularPowerToRoughness

  • Evaluates a specified specular power value to determine the appropriate roughness value, based on a pre-defined cubic bezier curve with specular on the abscissa axis (x-axis) and roughness on the ordinant axis (y-axis)

    Parameters

    • specularPower: number

      specular power of standard material

    • p0: any = ...

      first control point

    • p1: any = ...

      second control point

    • p2: any = ...

      third control point

    • p3: any = ...

      fourth control point

    Returns number

    Number representing the roughness value