const PointLayer: LiveComponent<PointLayerProps>
Draws 2D points with choice of shape.
{
position?: number[] | TypedArray,
uv?: number[] | TypedArray,
st?: number[] | TypedArray,
size?: number,
color?: number[] | TypedArray,
depth?: number,
zBias?: number,
positions?: ShaderSource,
uvs?: ShaderSource,
sts?: ShaderSource,
sizes?: ShaderSource,
colors?: ShaderSource,
depths?: ShaderSource,
zBiases?: ShaderSource,
shape?: PointShape,
stroke?: number,
count?: Lazy<number>,
id?: number,
} &
Pick<Partial<PipelineOptions>,
"mode" | "depthTest" | "depthWrite" | "alphaToCoverage" | "blend">
packages / workbench / src / layers / point-layer.ts