threejs-grass
    Preparing search index...

    Function createBladeGeometry

    • The base blade shape: a tapered, folded strip with x in [-0.5, 0.5] and y in [0, 1]. Each of the segments rows has three vertices (left edge, midrib, right edge) so the shader can fold the blade along its midrib; a single vertex forms the tip. Exposed for custom instancing setups; Grass creates these for you.

      Parameters

      • segments: number

      Returns BufferGeometry