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.
11 lines
220 B
11 lines
220 B
4 months ago
|
/*#pragma settings UsesPrecisionModifiers*/
|
||
|
|
||
|
uniform sampler2D tex;
|
||
|
in float2 texcoord;
|
||
|
in short2 offset;
|
||
|
|
||
|
void main() {
|
||
|
short scalar = offset.y;
|
||
|
sk_FragColor = sample(tex, texcoord + float2(offset * scalar));
|
||
|
}
|