mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-27 07:26:33 +01:00
11 lines
227 B
GLSL
11 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) );
|
|
}
|