Jump to content
  • Advertisement
Sign in to follow this  
ETFBlade

SetFVF

This topic is 4638 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!