vincoof
03-28-2003, 05:36 AM
Is it possible to sample the same texture unit with two different texture coordinate sets ?
Something like :
glTexCoord2fv(coord1); // sample TEXTURE0 with coord1
glSecondaryTexCoord2fv(coord2); // sample TEXTURE0 with coord2
I know the glSecondaryTexCoord2fv command does not exist, but I'm wondering if it can be emulated with extensions (be it NV_texture_shader/NV_register_combiners, ATI_fragment_shader or ARB_fragment_program).
My guess is that it's possible with ATI_fragment_shader and ARB_fragment_program but not with NV_texture_shader/NV_register_combiners. Am I right or wrong ?
TIA
ps: I know it's obvious with multipass. please don't point me to that solution http://www.opengl.org/discussion_boards/ubb/smile.gif
Something like :
glTexCoord2fv(coord1); // sample TEXTURE0 with coord1
glSecondaryTexCoord2fv(coord2); // sample TEXTURE0 with coord2
I know the glSecondaryTexCoord2fv command does not exist, but I'm wondering if it can be emulated with extensions (be it NV_texture_shader/NV_register_combiners, ATI_fragment_shader or ARB_fragment_program).
My guess is that it's possible with ATI_fragment_shader and ARB_fragment_program but not with NV_texture_shader/NV_register_combiners. Am I right or wrong ?
TIA
ps: I know it's obvious with multipass. please don't point me to that solution http://www.opengl.org/discussion_boards/ubb/smile.gif