threejs-worldgen
    Preparing search index...

    Interface StateResult

    The surface coming out: plug these into the material's nodes.

    interface StateResult {
        color: Node<"vec3">;
        emissive: Node<"vec3">;
        metalness: Node<"float">;
        normal: Node<"vec3">;
        opacity: Node<"float">;
        roughness: Node<"float">;
    }
    Index
    color: Node<"vec3">

    Albedo.

    emissive: Node<"vec3">

    Emissive (ember glow).

    metalness: Node<"float">

    Metalness (char and snow kill it).

    normal: Node<"vec3">

    View-space shading normal.

    opacity: Node<"float">

    Opacity (leaf loss, missing pieces). Use with alphaTest.

    roughness: Node<"float">

    Roughness.