Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / makeBladeGeometry

Function: makeBladeGeometry() ​

ts
function makeBladeGeometry(
   width, 
   height, 
   base, 
   tip): BufferGeometry;

Defined in: terrain/FoliageSystem.ts:122

A blade: a tapered strip, aHeight 0 at the root and 1 at the tip, coloured base to tip.

Parameters ​

ParameterType
widthnumber
heightnumber
baseColor
tipColor

Returns ​

BufferGeometry