UNPKG

@thi.ng/shader-ast

Version:

DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets

27 lines (26 loc) 317 B
const V2 = "vec2"; const V3 = "vec3"; const V4 = "vec4"; const M2 = "mat2"; const M3 = "mat3"; const M4 = "mat4"; const B = "bool"; const F = "float"; const I = "int"; const U = "uint"; const S2D = "sampler2D"; const S3D = "sampler3D"; export { B, F, I, M2, M3, M4, S2D, S3D, U, V2, V3, V4 };