Lighting non-textured polygons

bl0ckeduser
Posts: 5
Joined: Fri Dec 02, 2011 9:55 pm

Re: Lighting non-textured polygons

Post by bl0ckeduser » Mon Dec 05, 2011 9:03 pm

mtheall wrote:No these models are textureless (textures are not enabled). However, you should be able to do this with textures enabled with an all-white texture. I will try to convert my example to do so.
I see. Would you be willing to share the textureless technique you used ? I don't want or need textures.

mtheall
Posts: 211
Joined: Thu Feb 03, 2011 10:47 pm

Re: Lighting non-textured polygons

Post by mtheall » Mon Dec 05, 2011 9:09 pm

All I did was use glColor for each vertex (and not enable textures) and use lights as you normally would. However, I just converted my example to use an all-white texture and it looks identical. I verified by making the texture red (and everything was varying shades of red). You may be interested in hopping into the #dsdev channel on irc.blitzed.org.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests