I am trying to simulate the behavior of "texelFetch()" and so far I've understood the following:
If "gvec4 texelFetch(gsampler3D sampler, ivec3 P, int lod)" is given then :
result = sampler * P
But what should I do with "lod"? Is it supposed to be used to scale the sampler?
I've read sufficient information about the purpose of lod/level-of-details/mipmapping level theoretically but I would like to understand the computation usage of it in the sampling process.