Lut, Shader, Programming, Blender3d, Unreal Engine.
blue was 0, we want to sample the first slice. If B was 0.25–0.5 we want to sample the second slice, 0.5–0.75 the third slice etc. We have a problem though, our InColor.B is a float, so it can have any values, but our LUT is made out of discrete steps of NxN, so we need to find out in which of