diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-21 21:47:17 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-22 14:29:04 +0300 |
commit | 88a725eff8f42bcaa5921f35b988fa07d0e619e7 (patch) | |
tree | 9f359c035fa87aea7bfbaf21d113f377af04a0b1 /source/blender | |
parent | 2b1da51b2fc2482411c10ce5c387d3b1c6ee87b0 (diff) |
Eevee: Lookdev: Make winmat point to negative Z
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lookdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lookdev.c b/source/blender/draw/engines/eevee/eevee_lookdev.c index bd786c06e69..277caf85a44 100644 --- a/source/blender/draw/engines/eevee/eevee_lookdev.c +++ b/source/blender/draw/engines/eevee/eevee_lookdev.c @@ -225,6 +225,8 @@ void EEVEE_lookdev_draw(EEVEE_Data *vedata) /* override matrices */ DRWMatrixState matstate; unit_m4(matstate.winmat); + /* Look through the negative Z. */ + negate_v3(matstate.winmat[2]); eevee_lookdev_apply_taa(effects, effects->sphere_size, matstate.winmat); |