11 lines
225 B
Plaintext
11 lines
225 B
Plaintext
/*#pragma settings IncompleteShortIntPrecision*/
|
|
|
|
uniform sampler2D tex;
|
|
in float2 texcoord;
|
|
in short2 offset;
|
|
|
|
void main() {
|
|
short scalar = offset.y;
|
|
sk_FragColor = sample(tex, texcoord + float2(offset * scalar));
|
|
}
|