Jump to content
  • Advertisement
Sign in to follow this  
resle

D3DVBF_TWEENING and using shaders

This topic is 3626 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

I am currently using device.SetRenderState(D3DRS_VERTEXBLEND, D3DVBF_TWEENING) and two separate vertex streams to leverage hardware accelerated tweening. When a vertex shader enters the pipeline though, if I am not wrong, I have to perform all the transformations in the vertex shader itself. So can't I use at all D3DRS_VERTEXBLEND along with shaders? Do I need to perform the tweening within the shader and, if so, are there any substantial performance differences between using shaders and using the VERTEXBLEND renderstate? Thanks, a.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by resle
So can't I use at all D3DRS_VERTEXBLEND along with shaders? Do I need to perform the tweening within the shader and, if so, are there any substantial performance differences between using shaders and using the VERTEXBLEND renderstate?
Correct, it's a fixed function render state, so you can't use it with vertex shaders. There shouldn't be any performance differences (If any, shaders should be faster), fixed function has been emulated with shaders in hardware for a while now.

Share this post


Link to post
Share on other sites
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!