Page 2 of 2

Re: Lighting non-textured polygons

Posted: Mon Dec 05, 2011 9:03 pm
by bl0ckeduser
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.

Re: Lighting non-textured polygons

Posted: Mon Dec 05, 2011 9:09 pm
by mtheall
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.