plugin-icon

Display WebGL Shader

作者:Zebra North·
Display a WebGL shader.
版本
1.0.3
活跃安装
20
最后更新
May 1, 2022

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

} `

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 5.9.0
这个插件是可用的下载,适用于您的站点。