Formats WebGL GLSL compiler errors with code snippets and shader type context. Current stable version 1.0.3, no active release cadence (last updated 2015). Key differentiator: produces both a long human-readable error with source lines and a short error string. Works with glsl-shader-name for shader naming. Lightweight and focused on WebGL 1.0 error formatting.
npm install gl-format-compiler-errorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: compile a shader, capture error, format using the library.
Pass the exact source string variable used in gl.shaderSource.
Use gl.VERTEX_SHADER or gl.FRAGMENT_SHADER.
Use require('gl-format-compiler-error') or configure bundler to handle CJS.No dependency data recorded yet.