SetFVF

Started by
1 comment, last by ETFBlade 18 years, 4 months ago
Hey all, Quick question regarding the SetFVF() function and the D3DFVF flags. I'm currently trying to integrate a shader I wrote in that has the following vertex input structure: struct VS_IN { float4 Position : POSITION; // in object space float2 TexCoord : TEXCOORD0; float3 Tangent : TEXCOORD1; float3 Binormal : TEXCOORD2; float3 Normal : NORMAL; }; I'm not quite sure what flags to set in SetFVF() to indicate that there is a tangent and binormal to the vertex included in this structure. So far, I've got ( D3DFVF_XYZW | D3DFVF_TEX1 | D3DFVF_NORMAL ). Thanks in advance.
Advertisement
D3DFVF_XYZ|D3DFVF_NORMAL|D3DFVF_TEX3|D3DFVF_TEXCOORDSIZE3(1)|D3DFVF_TEXCOORDSIZE3(2)

ie: Position, normal, 3 texture coords, where texcoords 1 and 2 are float3.
Thanks a bunch!

This topic is closed to new replies.

Advertisement