diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-03-06 18:39:07 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-03-06 19:33:09 +0300 |
commit | b94ec178a2062244cb4227301b6ff9370bfbd46d (patch) | |
tree | 5d36330af3318f5b16e39b65f8911141d4959c15 /source/blender/draw/intern/draw_cache.h | |
parent | 0ec98863e27250a1e86274b8ee3689abbd8542c8 (diff) |
Fix stereoscopy convergence plane placement
Note this was broken even in 2.7x.
We had a different logic for the plane wire, as for the plane itself.
And they were both wrong when changing the camera shift or the stereo
pivot.
Both of their logic is now unified and correct.
Also I had to create a new gpu batch for the quad wires, since there is
no state that allows me to filter out the geometry, and the square gpu
batch is quite different than the quad one (2d x 3d and orientation).
Diffstat (limited to 'source/blender/draw/intern/draw_cache.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache.h b/source/blender/draw/intern/draw_cache.h index 1be2f4da4e5..287d970e298 100644 --- a/source/blender/draw/intern/draw_cache.h +++ b/source/blender/draw/intern/draw_cache.h @@ -39,6 +39,7 @@ struct GPUBatch *DRW_cache_cursor_get(bool crosshair_lines); struct GPUBatch *DRW_cache_grid_get(void); struct GPUBatch *DRW_cache_fullscreen_quad_get(void); struct GPUBatch *DRW_cache_quad_get(void); +struct GPUBatch *DRW_cache_quad_wires_get(void); struct GPUBatch *DRW_cache_cube_get(void); struct GPUBatch *DRW_cache_sphere_get(void); struct GPUBatch *DRW_cache_single_vert_get(void); |