mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
21 lines
277 B
Text
21 lines
277 B
Text
varying vec2 uv;
|
|
|
|
void main()
|
|
{
|
|
vec4 c = vec4(0.0);
|
|
float a, b;
|
|
|
|
a = uv.y * 1.111111e+6;
|
|
b = uv.y * 1.111110e+6;
|
|
c.x = a-b;
|
|
|
|
a = uv.y * 1.23456789;
|
|
b = uv.y * 1.23456765;
|
|
c.y = a-b;
|
|
|
|
a = uv.y * -1.234567e-6;
|
|
b = uv.y * -1.234565e-6;
|
|
c.z = a-b;
|
|
|
|
gl_FragColor = c;
|
|
}
|