There''s a next problem:
- Say there''s a pixel behind the floor and a pixel in front of the floor.
- They both are rendered with blending and with a bright pixel as result.
- The Z-buffer holds the front pixel''s value, and after drawing the floor a bright pixel overlaps the floor.
- You want half bright pixel.
Few solutions :
- do your own Z-sort or Z-checking (very slow, but maybe not in your case, if floor aligned with axis...)
- Draw your floor as normal with Z-buffer. Change OpenGL state to "Check Z-buffer, but don''t change", and draw the stars.
So from all this comes another question:
Is there an OpenGL function to change to "Check Z-buffer, but don''t change" state (if there is such a state?)
![](http://www.baskuenen.myweb.nl/images/title.jpg)