mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-23 02:41:58 -05:00
20 lines
374 B
GLSL
20 lines
374 B
GLSL
#version 330
|
|
|
|
uniform ivec4 uClip;
|
|
uniform sampler2D uTexture;
|
|
|
|
in vec2 fPosition;
|
|
in vec2 fTextureCoordinate;
|
|
|
|
layout (location = 0) out vec4 oColour;
|
|
|
|
void main()
|
|
{
|
|
if (fPosition.x < uClip.x || fPosition.x > uClip.z ||
|
|
fPosition.y < uClip.y || fPosition.y > uClip.w)
|
|
{
|
|
discard;
|
|
}
|
|
|
|
oColour = texture(uTexture, fTextureCoordinate);
|
|
}
|