You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of cases where uniform data is bound multiple times to multiple shaders using glUniformXXX. Each driver call incur some cost. We can eliminate a large number of these calls by storing arrays of data in uniform buffers. Each object then has some index in a regular uniform to fetch the data it needs. For example:
There are a lot of cases where uniform data is bound multiple times to multiple shaders using
glUniformXXX
. Each driver call incur some cost. We can eliminate a large number of these calls by storing arrays of data in uniform buffers. Each object then has some index in a regular uniform to fetch the data it needs. For example:The text was updated successfully, but these errors were encountered: