Christiaan Gribble
01-21-2006, 02:17 PM
Hello,
I've got a vertex shader that computes the point size for GL_POINTS and writes it in gl_PointSize. The fragment shader then attempts to texture the point sprites using the texture coordinates that result from setting GL_REPLACE_COORD_ARB to GL_TRUE.
Problem is, the texture coordinates do not range from [0, 0] --> [1, 1] over each point sprite as expected with GL_REPLACE_COORD_ARB turned on. However, if I do not write to gl_PointSize in the vertex shader, the texture coordinates are correct. I need to modify the point size in the vertex shader *and* texture each point sprite with coordinates in [0, 0] --> [1, 1].
I'm running SuSE Linux 9 with the Nvidia 81.xx drivers on a GeForce 6800. Any insight into this issue would be appreciated.
Thanks!
I've got a vertex shader that computes the point size for GL_POINTS and writes it in gl_PointSize. The fragment shader then attempts to texture the point sprites using the texture coordinates that result from setting GL_REPLACE_COORD_ARB to GL_TRUE.
Problem is, the texture coordinates do not range from [0, 0] --> [1, 1] over each point sprite as expected with GL_REPLACE_COORD_ARB turned on. However, if I do not write to gl_PointSize in the vertex shader, the texture coordinates are correct. I need to modify the point size in the vertex shader *and* texture each point sprite with coordinates in [0, 0] --> [1, 1].
I'm running SuSE Linux 9 with the Nvidia 81.xx drivers on a GeForce 6800. Any insight into this issue would be appreciated.
Thanks!