Pixel-Composer/shaders/sh_vertex_pt/sh_vertex_pt.fsh

12 lines
227 B
Text
Raw Normal View History

2022-01-13 05:24:03 +01:00
//
// Simple passthrough fragment shader
//
varying vec2 v_vTexcoord;
2023-01-09 03:14:20 +01:00
uniform vec2 UVscale;
uniform vec2 UVshift;
2022-01-13 05:24:03 +01:00
void main() {
2023-01-09 03:14:20 +01:00
gl_FragColor = texture2D( gm_BaseTexture, 1. - fract((v_vTexcoord + UVshift) * UVscale) );
2022-01-13 05:24:03 +01:00
}