You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
286 B
12 lines
286 B
4 months ago
|
#version 310es
|
||
|
precision mediump float;
|
||
|
precision mediump sampler2D;
|
||
|
out mediump vec4 sk_FragColor;
|
||
|
uniform sampler2D tex;
|
||
|
in highp vec2 texcoord;
|
||
|
in highp ivec2 offset;
|
||
|
void main() {
|
||
|
highp int scalar = offset.y;
|
||
|
sk_FragColor = texture(tex, texcoord + vec2(offset * scalar));
|
||
|
}
|