LangFox
01-22-2007, 03:59 PM
glspec20 says:
If a vertex shader is active and vertex program point size mode is enabled,
then the derived point size is taken from the (potentially clipped) shader builtin
gl_PointSize and clamped to the implementation-dependent point size range.
If a vertex shader is active and vertex program point size mode is disabled,
then the derived point size is taken from the point size state as specified by the
PointSize command. In this case no distance attenuation is performed.
I think it means the point's size will change against the distance when the vertex shader and vertex program point size are both enabled. It's not true, however, in my programm. Anyone met this problem before?
If a vertex shader is active and vertex program point size mode is enabled,
then the derived point size is taken from the (potentially clipped) shader builtin
gl_PointSize and clamped to the implementation-dependent point size range.
If a vertex shader is active and vertex program point size mode is disabled,
then the derived point size is taken from the point size state as specified by the
PointSize command. In this case no distance attenuation is performed.
I think it means the point's size will change against the distance when the vertex shader and vertex program point size are both enabled. It's not true, however, in my programm. Anyone met this problem before?