Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Global or local effect handle?

This topic is 2299 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 strongly believe in having 2 separate effect handles for static and blended meshes.
*But* these fx files have common viewproj matrices. If I set 2 viewproj matrices for these 2 sets of .fx files, these could be redundant and sometimes inconsistent and inefficient. It can be avoided, but it could happen, like static mesh A has viewproj matrix A and blended mesh B has viewproj matrix B
Should I put the effect handles on global scope? Now it is what I am thinking about. Am I on the right track?
Thanks
Jack Edited by lucky6969b

Share this post


Link to post
Share on other sites
Advertisement
What API are you using? In DX10+ you would have a PassCB with your viewProj and an ObjectCB for world matrix and a SkinnedCB for bones.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!