Sign in to follow this  
littlekid

Vertex Shader with Mesh

Recommended Posts

littlekid    229
If i want to use vertex shader, do i have to extract out the vertices and indices of the mesh then set the shader and render using DrawIndexedPrimitive, or can i set the shader and call DrawSubset?

Share this post


Link to post
Share on other sites
blackpawn    195
calling DrawSubset on D3DXMesh will just set the index and vertex buffer and call DrawPrimitive for you. any other device/render states you've set or D3DXEffect has set for you will be applied to what you're drawing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this