Display WebGL Shader

Display WebGL Shader Install Statistics

-11
0%
Today: 0 Yesterday: 11 All-time: 2,406 downloads
Display WebGL Shader Icon

Try plugin: Display WebGL Shader

We'll create fresh WordPress site with Display WebGL Shader installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Display WebGL Shader

Display a WebGL shader.

0


0


0


0


0

updated: 2 years ago
since: 3 years ago
author: Zebra North

Description

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

}
`