A GLSL compiler library for transforming GLSL shaders at runtime. Version 0.1.17 is the latest stable release with irregular updates. It provides shader compilation and optimization for WebGL/WebGPU applications. Differentiates by offering a lightweight, pure JavaScript implementation without external GPU dependencies, suitable for shader preprocessing in build tools or runtime environments.
npm install wonder-glsl-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of the compiler: import, compile a simple GLSL shader, and log the output.
Pre-validate shaders using a GLSL linter before compilation.
Upgrade to 0.1.17 or later.
Implement manual caching if compiling multiple shaders.
Use default import: import wonderGLSLCompiler from 'wonder-glsl-compiler';
Run npm install wonder-glsl-compiler and ensure tsconfig.json resolves modules.
Check the shader code for typos or unsupported features.
No dependency data recorded yet.