Pixel-Composer/shaders/sh_offset/sh_offset.fsh

9 lines
166 B
Text
Raw Normal View History

2024-01-12 05:03:35 +01:00
varying vec2 v_vTexcoord;
varying vec4 v_vColour;
uniform vec2 offset;
void main() {
gl_FragColor = texture2D( gm_BaseTexture, fract(v_vTexcoord + offset) );
}