Archived

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

Keith P Parsons

Shading a texture.

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
Ranok    122
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