OpenRCT2/data/shaders/applypalette.frag

14 lines
201 B
GLSL
Raw Normal View History

2016-06-15 18:53:26 +02:00
#version 150
2016-06-11 16:18:31 +02:00
uniform vec4 uPalette[256];
uniform usampler2D uTexture;
2016-06-11 16:18:31 +02:00
in vec2 fTextureCoordinate;
2016-06-15 18:53:26 +02:00
out vec4 oColour;
2016-06-11 16:18:31 +02:00
void main()
{
oColour = uPalette[texture(uTexture, fTextureCoordinate).r];
2016-06-11 16:18:31 +02:00
}