PDA

View Full Version : Lighting of point data



JRGlide
12-04-2009, 01:18 PM
I am trying to use lighting on point data (using GL_POINTS) but it doesn't seem to have any affect. I am using the same GL commands that I use on facet data and it works with that.

Is there anything special I have to do to enable lighting for point data? Or can I even do lighting on point data, for that matter? Also, do I need to define the normal for the point data? I've tried both ways and that doesn't seem to help either.

Thank you,

Jim

ZbuffeR
12-04-2009, 05:22 PM
do I need to define the normal for the point data?
Yes of course, otherwise lighting can not be correct, same for triangles or lines.