Skip to content

partRuns beta ​

Function of @v12-engine/render

ts
export declare function partRuns(parts: GeometryParts, cull: Cull | undefined, out: Uint32Array, castsTo?: {
    near: number;
    fade: number;
}): number;

The runs of a geometry's parts a pass sees, into out as pairs (the first index, how many): parts side by side are one run. castsTo: parts farther than this from the eye are left out (small things in the shadows), each by its own distance over the last fade. Returns how many runs