Sign in to follow this  

Lighting and Texturing

This topic is 4375 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm stumped on this one.. I've finally added texturing to one of my objects, but the lighting no longer effects it! This is what I have glBegin(GL_QUADS); glNormal3f(0, 1, 0); float dcolor[] = { 0.0f, 1.0f, 0.0f, 1.0f }; glMaterialfv(GL_FRONT, GL_DIFFUSE, dcolor); glTexCoord2f(0.0, 0.0); glVertex3f(5, 0, 8); glTexCoord2f(0.0, 3.0); glVertex3f(5, 0, -4); glTexCoord2f(2.5, 3.0); glVertex3f(-5, 0,-4); glTexCoord2f(2.5, 0.0); glVertex3f(-5, 0, 8); glEnd(); The reflected diffuse color doesn't seem to do anything, however, without the texturing it works fine.. Anyone know what might be happening?

Share this post


Link to post
Share on other sites

This topic is 4375 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this