{"library":"glsl-transpiler","type":"library","category":null,"description":"Transforms GLSL source code into optimized JavaScript, enabling WebGL shaders to run without a GPU or WebGL context. Current stable version is 3.0.3. Maintained as part of stackgl ecosystem. Key differentiators: converts vectors/matrices to typed arrays, expands swizzles, applies expression optimizations, and provides stdlib for environment compatibility. Supports both GLSL ES 100 and 300 versions. Can be used programmatically or as a stream via glsl-parser. Suitable for headless rendering, testing, and education.","language":"javascript","status":"active","version":"3.0.3","tags":["javascript","headless-gl","gl","glsl","glsl.js","glsl-transpiler","transpiler","stackgl","js"],"last_verified":"Fri May 01","install":[{"cmd":"npm install glsl-transpiler","imports":["import GLSL from 'glsl-transpiler'","import compile from 'glsl-transpiler/stream.js'","import type { GLSL } from 'glsl-transpiler'"]},{"cmd":"yarn add glsl-transpiler","imports":[]},{"cmd":"pnpm add glsl-transpiler","imports":[]}],"homepage":"http://stack.gl/","github":"https://github.com/stackgl/glsl-transpiler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/glsl-transpiler","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}