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