diff options
author | Brian Paul <[email protected]> | 2000-12-08 00:18:39 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-12-08 00:18:39 +0000 |
commit | fb7899bfec447e5840c2c1ea96619084093be424 (patch) | |
tree | 51e6bc8cc768713daa04d6419603497ca1bb4da0 /src/mesa/swrast_setup/ss_vbtmp.h | |
parent | c1b97d91c7e38290be85eb1ff56e6c108e1e47ca (diff) |
Compute attenuated point size in a new pipeline stage.
Store computed point size in the SWvertex struct.
Diffstat (limited to 'src/mesa/swrast_setup/ss_vbtmp.h')
-rw-r--r-- | src/mesa/swrast_setup/ss_vbtmp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/swrast_setup/ss_vbtmp.h b/src/mesa/swrast_setup/ss_vbtmp.h index 1303883f4f4..7ed4d514416 100644 --- a/src/mesa/swrast_setup/ss_vbtmp.h +++ b/src/mesa/swrast_setup/ss_vbtmp.h @@ -38,6 +38,7 @@ static void TAG(rs)(struct vertex_buffer *VB, GLuint start, GLuint end) GLubyte (*spec)[4]; GLuint *index; GLfloat *fog; + GLfloat *pointSize; GLuint sz[MAX_TEXTURE_UNITS]; GLuint szeye; int i; @@ -79,6 +80,7 @@ static void TAG(rs)(struct vertex_buffer *VB, GLuint start, GLuint end) color = VB->Color[0]->data; spec = VB->SecondaryColor[0]->data; index = VB->Index[0]->data; + pointSize = VB->PointSize.data; v = &(SWSETUP_VB(VB)->verts[start]); @@ -86,9 +88,10 @@ static void TAG(rs)(struct vertex_buffer *VB, GLuint start, GLuint end) if (VB->ClipMask[i] == 0) { COPY_4FV( v->win, win[i] ); +#if 0 if (IND & EYE) COPY_4FV( v->eye, eye[i] ); - +#endif if (IND & TEX0) COPY_CLEAN_4V( v->texcoord[0], sz[0], tc[0][i] ); @@ -110,6 +113,9 @@ static void TAG(rs)(struct vertex_buffer *VB, GLuint start, GLuint end) if (IND & INDEX) v->index = index[i]; + + if (IND & POINT) + v->pointSize = pointSize[i]; } } } |