Sign in to follow this  
Followers 0
Prune

Keeping transform matrices in video memory buffers?

0 posts in this topic

How significant is the impact of uploading new transform matrices per mesh?

What about, instead, storing all the transform matrices in a uniform or texture buffer? Wouldn't this be the way to go in scenes where many objects are not constantly animating? A downside, though, is that the camera transform cannot be then premultiplied and would have to be multiplied in the vertex shader. Another thing is that I'm not sure how to efficiently specify the index into the buffer for each draw call, even if the mesh sequence is fixed (the trivial way, setting an integer uniform, defeats the point).

 

Thanks

0

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  
Followers 0