Original Post
This FVF works
type CUSTOMVERTEX
Position as D3DVECTOR
Normal as D3DVECTOR
Diffuse as LONG
Specular as LONG
tu as SINGLE
tv as SINGLE
ent type
const D3DFVF = (D3DFVF_POSITION or D3DFVF_NORMAL or D3DFVF_DIFFUSE or D3DFVF_SPECULAR or D3DFVF_TEX0)
But this one doesn''t work right
type CUSTOMVERTEX
Position as D3DVECTOR
Normal as D3DVECTOR
Diffuse as LONG
Specular as LONG
tu as SINGLE
tv as SINGLE
tu2 as SINGLE
tv2 as SINGLE
ent type
const D3DFVF = (D3DFVF_POSITION or D3DFVF_NORMAL or D3DFVF_DIFFUSE or D3DFVF_SPECULAR or D3DFVF_TEX1 or D3DFVF_TEX2)
With the first one when I render with just diffuse and 4 diffuse colours it gradiates it properley over the face.
However, when I use the second one, only two colours are used. Sometimes for no reason it uses different combinations of the colours.
All the colours are storedd in the vertex.
Is it something to do with specifying the length of the texture coords