1 #version 300 es 2 3 uniform sampler2D sTexture; 4 uniform mediump sampler3D sColourLUT; 5 6 in mediump vec2 texCoords; 7 layout(location = 0) out lowp vec4 oFragColour; 8 9 void 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