threejs-worldgen
    Preparing search index...

    Function createCornGeometry

    • One corn plant, modelled 2.4 m tall (instances scale it): a tapering stalk, alternating arching leaves with a folded midrib and wavy margins, a branched tassel and up to two ears with silk. detail 0 (near) … 2 (far) uses fewer, wider leaves and drops the small parts. Attributes: position, normal, uv, aPart = (part, node height 0..1), see createCornMaterial. Exposed for custom instancing; Corn creates these for you.

      Parameters

      • detail: number

      Returns BufferGeometry