BACK TO DIRECTORY

Display WebGL Shader

by Zebra North

0.0
(0 ratings)

This plugin allows you to display a WebGL2 fragment shader, compatible with https://shadertoy.com

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);

}
`

Plugin Details

Active Installs
10
Total Downloads
4,251
Version
1.0.3
Requires WP
5.8
Requires PHP
7.0
Tested Up To
5.9.0
Added
2021-12-22
Last Updated
2022-05-01 10:18am GMT

Ratings

5
0
4
0
3
0
2
0
1
0