diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-08-14 23:43:44 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-08-15 00:59:33 +0300 |
commit | 80e9eb66d568311f4acddf5dfe5bbf8f8618f18d (patch) | |
tree | 3500aefe68052bd56eb15f82b24611af7d6866cf /source/blender/draw/intern/draw_cache_extract.h | |
parent | deb5416a1a50e153cf2f9e3809755a5e82bd8f85 (diff) |
Mesh Batch Cache: Split UV an tangent into 2 distinct VBOs
This is done because they don't have the same update frequency. UV can be
persistent even on geometry update (ex: skinned object) but tangents
can change if the normals change.
Also the name buffer per vbo was too small to contain all names.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_extract.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache_extract.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_extract.h b/source/blender/draw/intern/draw_cache_extract.h index 5a06210fe8e..9305dc6eef7 100644 --- a/source/blender/draw/intern/draw_cache_extract.h +++ b/source/blender/draw/intern/draw_cache_extract.h @@ -86,7 +86,8 @@ typedef struct MeshBufferCache { GPUVertBuf *lnor; /* extend */ GPUVertBuf *edge_fac; /* extend */ GPUVertBuf *weights; /* extend */ - GPUVertBuf *uv_tan; + GPUVertBuf *uv; + GPUVertBuf *tan; GPUVertBuf *vcol; GPUVertBuf *orco; /* Only for edit mode. */ |