gradient coloring of an object

Posted by perrakdar on Game Development See other posts from Game Development or by perrakdar
Published on 2012-08-05T20:42:43Z Indexed on 2012/09/06 9:50 UTC
Read the original article Hit count: 172

Filed under:
|

I have an object(FBX format) in my project, it's a line drawn in 3D max. I want to color the line in XNA so that the color starts from a specific RGB color in both the start and end points of the line and finish in a specific RGB color.(e.x., from (255,255,255) to (128,128,128). Something like gradient coloring of an object. I need to do that programmatically, since later in my code I have to change these two specific colors a lot.

© Game Development or respective owner

Related posts about xna-4.0

Related posts about color