I want to use rectangle texture provide by GL_ARB_texture_rectangle under GLSL. My problem is that i haven’t found any sampler data type dedicated to rectangle texture in GLSL 1.05 spec.
Is there any possibility to use GL_ARB_texture_rectangle or I need to wait a new release of GLSL ?
No "bias" parameter is allowed because mipmaps are not allowed for texture rectangles.[/b]
Unfortunately, ARB_texture_rectangle is not yet supported by ATI (Catalyst 4.12). I don’t know about nVidia (but would be very surprised if it didn’t work, possibly with some alternate names).
Originally posted by Daniel Wesslen: ARB_texture_rectangle is not yet supported by ATI (Catalyst 4.12). I don’t know about nVidia (but would be very surprised if it didn’t work, possibly with some alternate names).
NVIDIA already supports it.
I just noticed in the ARB_texture_rectangle extension:
vec4 textureRect(samplerRect sampler, float coord)
vec4 textureRectProj(samplerRect sampler, float coord)
Shouldn’t the second argument be vec2 instead of float?