This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Display WebGL Shader


This plugin allows you to display a WebGL2 fragment shader, compatible with

Simply copy and paste the code of your fragment shader into the edit box.

This plugin makes use of the open source “gl-matrix” library by Brandon Jones and Colin MacKensie IV.

Your shader code should look like the example below. The mainImage() function is called once for each pixel.


void mainImage(out vec4 fragColor, in vec2 fragCoord)
// Normalized pixel coordinates (from 0 to 1).
vec2 uv = fragCoord / iResolution.xy;

// Output to screen as (r, g, b, alpha).
fragColor = vec4(uv.x, uv.y, 0.0, 1.0);



This plugin provides 1 block.

  • Display WebGL Shader Display a WebGL fragment shader compatible with Shadertoy


  1. Upload the plugin files to the /wp-content/plugins/display-webgl-shader directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress


There are no reviews for this plugin.

Contributors & Developers

“Display WebGL Shader” is open source software. The following people have contributed to this plugin.


Translate “Display WebGL Shader” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



Fix missing rename from “WebGL Shader” to “Display WebGL Shader”.
Breaking change: The ID and CSS class on the canvas have been renamed.


Rename from “WebGL Shader” to “Display WebGL Shader”.


  • Minor updates so the plugin can be hosted on


  • Release