Jump to content
  • Advertisement


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


Shading Vertices

This topic is 5577 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

Should be an easy question, Is there some FVF that I can use for my vertices that can let me 'darken' a textured vertex? if not, how could I darken textured vertices? Thanks Edit: Btw, I'd like to do this in DirectX 9 (or 8.1) [edited by - Xtremehobo on March 16, 2003 1:53:03 PM]

Share this post

Link to post
Share on other sites
If you are using a diffuse color in your vertices, just make it a darker color.

struct Vertex
D3DXVECTOR3 Position;
DWORD Color;
D3DXVECTOR2 TexCoords;



then you can change the color of your vertex manually.

Vertex vert;


This would darken your texture also.

If you are not using a diffuse color, just change it in the material.

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!