Cosmos Journeyer API Documentation - v1.10.1
    Preparing search index...

    Function pbrMetallicRoughnessMaterial

    • Creates a PBR metallic roughness material using the given parameters.

      Parameters

      • albedoRgb: NodeMaterialConnectionPoint

        The albedo color.

      • metallicFloat: NodeMaterialConnectionPoint

        The metallic value.

      • roughnessFloat: NodeMaterialConnectionPoint

        The roughness value.

      • ambientOcclusionFloat: null | NodeMaterialConnectionPoint

        The ambient occlusion value (optional).

      • perturbedNormalVec3: NodeMaterialConnectionPoint

        The perturbed normal vector.

      • normalWorldVec3: NodeMaterialConnectionPoint

        The world normal vector.

      • viewMat4: NodeMaterialConnectionPoint

        The view matrix.

      • cameraPositionVec3: NodeMaterialConnectionPoint

        The camera position vector.

      • positionWorldVec3: NodeMaterialConnectionPoint

        The world position vector.

      • Optionaloptions: Partial<PBRMetallicRoughnessMaterialOptions>

        Optional properties for the PBR material.

      Returns NodeMaterialConnectionPoint