UNPKG

regl-shape

Version:
13 lines (12 loc) 565 B
import { Regl, Buffer } from "regl"; import { ShaderDrawConfig, BufferAttribute } from ".."; export declare type RectShaderAttributes = { lineEnd: BufferAttribute; lineTop: BufferAttribute; aCoord: BufferAttribute; bCoord: BufferAttribute; aCoordFract: BufferAttribute; bCoordFract: BufferAttribute; color: BufferAttribute; }; export declare function createRectShader(regl: Regl, offsetBuffer: Buffer, baseOptions: ShaderDrawConfig<undefined>): import("regl").DrawCommand<import("regl").DefaultContext, import("../..").InnerShapeProps>;