Pixel-Composer/shaders/sh_vertex_pt/sh_vertex_pt.fsh
2023-01-09 09:14:20 +07:00

12 lines
227 B
GLSL

//
// Simple passthrough fragment shader
//
varying vec2 v_vTexcoord;
uniform vec2 UVscale;
uniform vec2 UVshift;
void main() {
gl_FragColor = texture2D( gm_BaseTexture, 1. - fract((v_vTexcoord + UVshift) * UVscale) );
}