GL_POINT_SPRITE_ARB Texture Coords in GLSL
Hi!
I have some trouble generating the correct texture coordinates when drawing sprites in GLSL shaders. Afaik GLSL discards TexEnv setttings, so
glTexEnvf( GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE );
does not have an influence.
Currently my gl_TexCoord[0] is 0.0,0.0 for all fragments calculated, although the value is set to gl_MultiTexCoord0. The texture returns the correct value for any other texture coordinates i set manually.
Anyone suggestions?
Thanks for your help.
point_sprites are useless (how the hell they made it inot gl2.0 i never know)
seems like youve discovered one of the many problems
seems like youve discovered one of the many problems
Using quads increases my vertexes significantly. My vertex shader calculates the position of the particles with a texture fetch from the position texture. Since the nv 6800 is limited to apox 40.000.000 texture fetches thats quite bad for my millions of particles.
Additionally, i know sprites work with shaders, i've seen demos. I just don't know what i did wrong.
Additionally, i know sprites work with shaders, i've seen demos. I just don't know what i did wrong.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement