Skip to content
/ ts-glsl Public

A GLSL Parser implemented purely in TypeScript type annotations.

License

Notifications You must be signed in to change notification settings

SyMind/ts-glsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-glsl

A GLSL Parser implemented purely in TypeScript type annotations.

In accordance with GLSL ES Specification 1.0.

You can install ts-glsl in your own project with npm install ts-glsl.

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

About

A GLSL Parser implemented purely in TypeScript type annotations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published