PDA

View Full Version : Point sprites and vertex programs



Pentagram
11-05-2004, 01:54 AM
Hello,

I got some problem getting point sprites to work with vertex programs. Everything works fine without them but when I enable them the point sprites disappear.
Even a trivial vertex program like:

!!ARBvp1.0
OPTION ARB_position_invariant ;
MOV result.pointsize, 10;
MOV result.color, 1;
ENDDoesn't work (similar results without the posinv and doing the transform manually)
Is there any special state or limitations I need to be aware of (the specs don't seem to mention any...)

Charles

execom_rt
11-05-2004, 06:18 AM
Are doing glEnable(GL_VERTEX_PROGRAM_POINT_SIZE_ARB, GL_TRUE); ?

or use gl_PointSize and rewrite it using GLSL (then you don't have to call that glEnable apparently).