regl-shape
Version:
2D shape shader for regl
14 lines (13 loc) • 593 B
TypeScript
import { Regl, Buffer } from "regl";
import { ShaderDrawConfig, BufferAttribute } from "..";
export declare type MiterShaderAttributes = {
lineEnd: BufferAttribute;
lineTop: BufferAttribute;
aColor: BufferAttribute;
bColor: BufferAttribute;
prevCoord: BufferAttribute;
aCoord: BufferAttribute;
bCoord: BufferAttribute;
nextCoord: BufferAttribute;
};
export declare function createMiterShader(regl: Regl, offsetBuffer: Buffer, baseOptions: ShaderDrawConfig<undefined>): import("regl").DrawCommand<import("regl").DefaultContext, import("../..").InnerShapeProps>;