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)[]): Float32Array
import { packSurfaceEffects } from '@driftengine/core';

Parameters

ParameterTypeDescription
effectsreadonly (SurfaceLayerEffect | undefined)[]