API

Class FlowMap

Class used to represent a particle flow map. #5DM02T#7 GPUParts: #5DM02T#12 (webgl2) GPUParts: #5DM02T#13 (webgpu)

Index
  • Create a new flow map.

    Parameters

    • width: number

      defines the width of the flow map

    • height: number

      defines the height of the flow map

    • data: Uint8ClampedArray

      defines the data of the flow map

    Returns FlowMap

data: Uint8ClampedArray

defines the data of the flow map

height: number

defines the height of the flow map

width: number

defines the width of the flow map

  • Applies the flow map to a flowable object.

    Parameters

    • flowable: IFlowable

      defines the object to update

    • strength: number = 1

      defines the strength of the flow map influence

    • OptionalflowMapSamplePosOrTransformationMatrix: Matrix | IVector3Like

      defines the flow map sample position or transformation matrix

    Returns void