Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-02-19 21:36:12 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-02-19 21:36:48 +0300
commitf972a3c31458a7048a6ffb3e26f7d802e3433934 (patch)
treebb617cbb91a90d4d874d1662e2c63eed1e47d51b /source/blender/draw/intern/draw_manager.h
parentbda8076d354ce9ce587d315bff4a089094af5847 (diff)
DRW: Support inverted view matrix
We detect the case where we need to invert the facing directly inside the DRWView update and do the appropriate GL calls at draw time. Fix T63047 Camera with negative scale works only in Cycles Rendered view Fix T71352 Negative scale camera causes BLI_assert
Diffstat (limited to 'source/blender/draw/intern/draw_manager.h')
-rw-r--r--source/blender/draw/intern/draw_manager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h
index f040afc794c..6d415ee95b3 100644
--- a/source/blender/draw/intern/draw_manager.h
+++ b/source/blender/draw/intern/draw_manager.h
@@ -362,6 +362,8 @@ struct DRWView {
int clip_planes_len;
/** Does culling result needs to be updated. */
bool is_dirty;
+ /** Does facing needs to be reversed? */
+ bool is_inverted;
/** Culling */
uint32_t culling_mask;
BoundBox frustum_corners;