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
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.