gael
09-17-2003, 04:55 AM
I want to use a depth texture in an ARB fragment program but i have only 8 bits of presision when i get the value with TEX instruction.
Nevertheless, if i read the texture with glTexImage(), there are realy 24bits of presision.
I think the "TEX" instruction take only the first byte as a luminance value and not the 3 bytes ?
So, is it possible to use the 24bits in a fragment program ?
Nevertheless, if i read the texture with glTexImage(), there are realy 24bits of presision.
I think the "TEX" instruction take only the first byte as a luminance value and not the 3 bytes ?
So, is it possible to use the 24bits in a fragment program ?