A little confused

Started by
9 comments, last by Gary 22 years, 8 months ago
The pixel format will be this:

dwFVF = D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_DIFFUSE;

and also the flag for the number of texture coordinates:
if (NumTexCoords == 1)
dwFVF |= D3DFVF_TEX1;
else if (NumTexCoords == 2)
dwFVF |= D3DFVF_TEX2;
...

D3D always uses a specific order for the elements. In this case it''s position, normal, diffuse color, then texture coordinates.

Author of Power Render (http:/www.powerrender.com)

This topic is closed to new replies.

Advertisement