Blender Git Loki
Git Commits -> Revision 52e69ce
Revision 52e69ce by Clément Foucault (tmp-overlay-engine) November 20, 2019, 19:51 (GMT) |
GPU: Batch: Add second instance buffer This is needed in one corner case. In an attempt to get rid of geometry shader, we need to use instancing using pos and lnor vbos for edit mesh normals overlay. This is a bit hacky and quickly made. This should be do more thoroughly. |
Commit Details:
Full Hash: 52e69ce74716ac2640baf8a20826d259fd100d2c
Parent Commit: b5d3d4e
Lines Changed: +66, -32
8 Modified Paths:
/source/blender/draw/intern/draw_cache_impl_mesh.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_instance_data.c (+10, -4) (Diff)
/source/blender/draw/intern/draw_instance_data.h (+1, -0) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+3, -2) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+2, -2) (Diff)
/source/blender/gpu/GPU_batch.h (+3, -1) (Diff)
/source/blender/gpu/intern/gpu_batch.c (+44, -8) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+2, -14) (Diff)
/source/blender/draw/intern/draw_instance_data.c (+10, -4) (Diff)
/source/blender/draw/intern/draw_instance_data.h (+1, -0) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+3, -2) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+2, -2) (Diff)
/source/blender/gpu/GPU_batch.h (+3, -1) (Diff)
/source/blender/gpu/intern/gpu_batch.c (+44, -8) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+2, -14) (Diff)