const SurfaceLayer: LiveComponent<SurfaceLayerProps>
Draws 2D surfaces across the X and Y data dimension.
{
position?: VectorLike,
color?: VectorLike,
uv?: VectorLike,
st?: VectorLike,
zBias?: VectorLike,
positions?: ShaderSource,
colors?: ShaderSource,
sts?: ShaderSource,
zBiases?: ShaderSource,
loopX?: boolean,
loopY?: boolean,
shaded?: boolean,
size?:
Lazy< | [number, number] | [number, number, number] | [number, number, number, number]>,
side?: "front" | "back" | "both",
id?: number,
} &
Pick<Partial<PipelineOptions>,
| "mode" | "alphaToCoverage" | "depthTest" | "depthWrite" | "blend" | "shadow">
packages / workbench / src / layers / surface-layer.ts