ts-glsl
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ts-glsl

A GLSL Parser implemented purely in TypeScript type annotations.

In accordance with GLSL ES Specification 1.0.

See the live demo

import { Parse } from 'ts-glsl';

const vertex = `
attribute vec3 position;
varying vec2 uv;
void main() {
    gl_Position = vec4(position, 1.0);
    uv = position.xy;
}
`

type AST = Parse<typeof vertex>;

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i ts-glsl

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

47.3 kB

Total Files

11

Last publish

Collaborators

  • symind