threejs-worldgen
    Preparing search index...

    Interface StateSurface

    The surface going in: what the material would look like without weathering.

    interface StateSurface {
        color: Node<"vec3">;
        emissive?: Node<"vec3">;
        metalness?: number | Node<"float">;
        normal?: Node<"vec3">;
        opacity?: number | Node<"float">;
        roughness: number | Node<"float">;
    }
    Index
    color: Node<"vec3">

    Base albedo.

    emissive?: Node<"vec3">

    Base emissive. Default: black.

    metalness?: number | Node<"float">

    Base metalness. Default: 0.

    normal?: Node<"vec3">

    Shading normal in view space (normal-mapped if you have one). Default: normalView.

    opacity?: number | Node<"float">

    Base opacity. Default: 1.

    roughness: number | Node<"float">

    Base roughness.