Jump to content
  • Advertisement

Archived

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

Keith P Parsons

Shading a texture.

This topic is 6543 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 having trouble shading the textures that I''m using on various polygons. With out a texture just using the diffuse Material color it looks shaded. But when I apply a texture I get the texture but no shading. Does anyone know how to shading to a texture? Does anyone know were I can find some code that does this?

Share this post


Link to post
Share on other sites
Advertisement
You need to modulate the shading on top of the texture. Meaning that if you have lit vertices then you need to set the vertex color as the first color componet and the texture as the second texture and modulate them together.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!