The WEBGL_debug_shaders extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.

Documentation WEBGL_debug_shaders by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Methods

getTranslatedShaderSource (shader:Shader):String

Returns the translated shader source.