PSIZE cg Shader semantic

if there anyway to allow the PSIZE Cg semantic in panda. I Know in Opengl we have to use glEnable( GL_VERTEX_PROGRAM_POINT_SIZE_ARB ).

I don’t think there’s any such thing currently built into Panda, but it sounds like it might be a useful addition.

David

Its used in the Cg tutorial to make Particle Systems. Im interested in how Panda controls the size of point particles without using this.

There is a separate parameter to control point size, which is specified in the RenderModeAttrib (although I think on the panda 1.0 branch it was specified explicitly in each Geom). Panda uses this parameter to issue glPointSize() calls, which is (I assume) unrelated to GL_VERTEX_PROGRAM_POINT_SIZE_ARB, which I don’t know about. But perhaps this enable symbol means simply to allow the vertex program to respect whatever has been set by glPointSize()?

David

I know its an output semantic so the vertex program can set it. I dont know if its an input parametr too. ill check tomorrow morning.