summaryrefslogtreecommitdiff
path: root/engine-ocean/Resources/Shaders/InventoryShader.frag
blob: fc89ab14ea4fb4f4c883e22456e6fd98761d39b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 330 core
in vec2 texCoords;
out vec4 color;

uniform sampler2D inventoryTexture0;

void main()
{
    if (texCoords.x < 0.0 || texCoords.x > 1.0 ||
            texCoords.y < 0.0 || texCoords.y > 1.0) {
            discard;
    }

    color = texture(inventoryTexture0, texCoords);
}