I’m trying to use a layout TOP with 1x1 pixel constants to create a texture palette to use within a glsl TOP. When I sample the texture within glsl using this line
vec3 color = texture(sTD2DInputs, vec2(0.,0.)).rgb;
I get a colour much darker than the input colour, in this case white becomes dark grey.
I’ve uploaded a simple example of what I mean.
ColourInput.toe (4.5 KB)
I’m not sure what is happening here. If anyone could shed some light on this or suggest a different way of doing it I would be very appreciative.