mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
22 lines
277 B
Text
22 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;
|
||
|
}
|