regl-shape
Version:
2D shape shader for regl
13 lines (12 loc) • 565 B
TypeScript
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>;