1#version 300 es 2 3uniform sampler2D sTexture; 4uniform mediump sampler3D sColourLUT; 5 6in mediump vec2 texCoords; 7layout(location = 0) out lowp vec4 oFragColour; 8 9void main() 10{ 11 highp vec3 vCol = texture(sTexture, texCoords).rgb; 12 lowp vec3 vAlteredCol = texture(sColourLUT, vCol.rgb).rgb; 13 oFragColour = vec4(vAlteredCol, 1.0); 14} 15