{"library":"glsl-transpiler2","type":"library","category":null,"description":"Transforms GLSL shader source code into optimized JavaScript. Version 1.8.6 is stable, though the package has seen infrequent updates since 2018. It converts vectors and matrices to arrays, expands swizzles, applies expression optimizations, and provides a stdlib for environment compatibility. Part of the stackgl ecosystem, it is a key tool for running WebGL shaders on the CPU or in headless environments. Differs from alternatives like glsl.js by offering more granular control over uniform/attribute replacement and stream-based processing.","language":"javascript","status":"maintenance","version":"1.8.6","tags":["javascript","headless-gl","gl","glsl","glsl.js","glsl-js","transpiler","stackgl","js"],"install":[{"cmd":"npm install glsl-transpiler2","imports":["import GLSL from 'glsl-transpiler'","import compileStream from 'glsl-transpiler/stream'","import { Compiler } from 'glsl-transpiler'"]},{"cmd":"yarn add glsl-transpiler2","imports":[]},{"cmd":"pnpm add glsl-transpiler2","imports":[]}],"homepage":"https://github.com/stackgl/glsl-transpiler#readme","github":"https://github.com/stackgl/glsl-transpiler","docs":null,"changelog":null,"pypi":null,"npm":"glsl-transpiler2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Thu Jun 04","next_check":"Wed Sep 02","install_tag":null}}