Renderer · function
packSurfaceEffects
The table for effects, one entry a layer (undefined for a layer with none), as floats: six
RGBA texels a layer, a row a layer.
Explained in Hello world.
function packSurfaceEffects(effects: readonly (SurfaceLayerEffect | undefined)[]): Float32Arrayimport { packSurfaceEffects } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
effects | readonly (SurfaceLayerEffect | undefined)[] |