Easy vertex color question....

Started by
2 comments, last by Namethatnobodyelsetook 17 years, 10 months ago
I have defined PositionColoredTextured verts and created a buffer out of them. Next I draw to the device using the per vertex colors. The next step I want is to override the vertex colors and draw with a custom color for all of the verts. Question: is there an easy way to set a global vertex color override? Thanks, Devin
Advertisement
You could do it in a shader and just pass the color in.

Dave
Shader processing using hlsl is something I was hoping to avoid but I do know how to do that. Thanks for the reminder :)

I was thinking there has got to be some renderstate or texturestate or something that allows for vertex color override isn't there?

-Devin
D3DRS_TEXTUREFACTOR = a dword ARGB color
D3DTA_TFACTOR = texture op argument to refer to TFACTOR.

Note some DX7 class cards don't have working support (ie: ATI RageProTurbo XPert98).

This topic is closed to new replies.

Advertisement