I tought that by default, the fixed function pipeline does use the vertex's diffuse color.
SetRenderState(D3DRS_COLORVERTEX, 1)
SetRenderState(D3DRS_DIFFUSEMATERIALSOURCE, D3DMCS_COLOR1)
(both default values according to the documention)
Vertex declaration vs. D3D fixed pipeline
Quote:Original post by dyerseve
I tought that by default, the fixed function pipeline does use the vertex's diffuse color.
SetRenderState(D3DRS_COLORVERTEX, 1)
SetRenderState(D3DRS_DIFFUSEMATERIALSOURCE, D3DMCS_COLOR1)
(both default values according to the documention)
This isn't the case in my experience... if lighting isnt disabled, the color will try to be computed using a non-existant light and the material (which will force the mesh to solid black if neither are present).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement