UNPKG

wggl

Version:

A friendly interface to shaders

10 lines (9 loc) 302 B
export interface Shader { attrs: ShaderAttrs; src: string; } export interface ShaderAttrs { [key: string]: any; } export declare function vs(strings: string | string[]): (attrs: ShaderAttrs) => Shader; export declare function fs(strings: string | string[]): (attrs: ShaderAttrs) => Shader;