Brian Paul wrote:
>
> I saw that in the GL_NV_vertex_program extension that point size is
> considered a vertex attribute which may be computed by a vertex program.
>
> Keith, have you considered adding point size as a vertex attribute
> in SWvertex?
I'd been wondering how to handle attenuated points better - this looks like a
good way to do it.
> We could add pipeline/setup stages for computing point size when attenuation
> is enabled.
>
> For rendering, we can check if point attenuation is enabled before
> rendering a vertex buffer and use grDrawVertexArray if attenuation
> is disabled and GL_POINT_SIZE == 1.
>
> Otherwise, it should be easy to examine the point size for each
> vertex inside the point rendering functions.
>
> Point attenutation might get more popular for particle system effects.
It is still a piece of work to implement on existing hardware, I think, but at
least doing this would put the mechanism in place.
Keith
|