import * as THREEJS from "three"; /** * The vertex shader of `LineMaterial` with each segment moved by its own matrix first: the matrix at * the segment's `instanceBatch` in the `batchMatrices` texture, four texels per matrix. Every other * step of the shader is kept, so the line keeps its width in pixels. * @param vertexShader - The vertex shader `LineMaterial` compiles * @returns The shader that moves each segment by its matrix */ export declare function batchedLineShader(vertexShader: string): string; /** * A texture that holds `count` matrices, four texels each, in rows a multiple of four wide, so a * matrix never runs across a row: the layout `batchedLineShader` reads. * @param count - How many matrices the texture holds * @returns The texture, its matrices all zero */ export declare function matricesTexture(count: number): THREEJS.DataTexture; /** * Writes `matrices`, each 16 numbers in column-major order, into the texture from its start, in * order, and marks it for upload. * @param texture - A texture `matricesTexture` made * @param matrices - The matrices to write */ export declare function writeMatrices(texture: THREEJS.DataTexture, matrices: readonly (readonly number[])[]): void;