mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2024-08-28 13:11:32 +02:00
21 lines
314 B
GLSL
21 lines
314 B
GLSL
#version 150
|
|
|
|
uniform ivec2 uScreenSize;
|
|
uniform ivec4 uClip;
|
|
uniform vec4 uColour;
|
|
|
|
in vec2 fPosition;
|
|
|
|
out vec4 oColour;
|
|
|
|
void main()
|
|
{
|
|
if (fPosition.x < uClip.x || fPosition.x > uClip.z ||
|
|
fPosition.y < uClip.y || fPosition.y > uClip.w)
|
|
{
|
|
discard;
|
|
}
|
|
|
|
oColour = uColour;
|
|
}
|