UNPKG

@thi.ng/shader-ast-glsl

Version:

Customizable GLSL codegen for @thi.ng/shader-ast

19 lines 609 B
import { type GLSLOpts, type GLSLTarget } from "./api.js"; /** * GLSL code gen, targets GLSL ES 3.00 (WebGL2) by default. * * Use options object to configure shader type and GLSL version: `100` * for WebGL, 300 for WebGL2. Currently, the only differences in terms * of code generation, not correctness, are: * * - attribute, varying, uniform declarations * - texture lookup function naming * * Unsupported features in GLSL 100: * * - Fragment shader output vars * * @param opts - */ export declare const targetGLSL: (opts?: Partial<GLSLOpts>) => GLSLTarget; //# sourceMappingURL=target.d.ts.map