mirror of
https://github.com/libretro/RetroArch
synced 2025-03-08 10:14:29 +00:00
25 lines
391 B
GLSL
25 lines
391 B
GLSL
|
#version 310 es
|
||
|
precision mediump float;
|
||
|
|
||
|
layout(location = 0) out vec4 FragColor[4];
|
||
|
layout(location = 0) in vec4 vA;
|
||
|
layout(location = 1) in vec4 vB;
|
||
|
|
||
|
void write_deeper_in_function()
|
||
|
{
|
||
|
FragColor[3] = vA * vB;
|
||
|
}
|
||
|
|
||
|
void write_in_function()
|
||
|
{
|
||
|
FragColor[2] = vA - vB;
|
||
|
write_deeper_in_function();
|
||
|
}
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
FragColor[0] = mod(vA, vB);
|
||
|
FragColor[1] = vA + vB;
|
||
|
write_in_function();
|
||
|
}
|