threejs-worldgen
    Preparing search index...

    Function deformBeforeInstancing

    • Deforms vertices in the mesh's own space, before instancing (a material's positionNode runs after the instance transform and would replace it, so instanced meshes deform here instead).

      Type Parameters

      • M extends NodeMaterial

      Parameters

      • material: M
      • deformed: Node

      Returns M