Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

RPGman

multitexture and color?

This topic is 6092 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 am using multitexturing to put a detail texture on my terrain, and i WAS using glcolor3f to do the shading on my landscape when i wasnt using a detail texture. But now when i use multitexturing, the landscape isnt affected by glcolor3f... is that my mistake, or is that just a drawback of multitexturing?

Share this post


Link to post
Share on other sites
Advertisement
no. it isn''t. but you shouldn''t be using glcolour3f etc, you should be using a colour array (preferably unsigned bytes)....

when you activate the texture unit, use glColorPointer to give gl the colours you want to use.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
No, he told you why. Each texture unit you activate must be told what to do.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!