Skip to content

copyOut beta ​

Function of @v12-engine/render

ts
export declare function copyOut(cull: Cull, spheres: Float32Array, i: number, margin: number, castsTo?: {
    near: number;
    fade: number;
}, most?: number): boolean;

Whether copy i of a batch is left out of a pass: its sphere (spheres, four floats a copy) out of the pass with margin more, or, where small things stop casting (castsTo, a cascade's), farther from the eye than its own distance, or, cast into most cascades at most (a cascade's: BatchOptions.cascadesMost), in as many nearer ones already (fallsBefore). What the renderer's keep asks of each copy; the test renderer (testing.ts) asks the same