Eevee: Lookdev: Make winmat point to negative Z
authorClément Foucault <foucault.clem@gmail.com>
Tue, 21 May 2019 18:47:17 +0000 (20:47 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 22 May 2019 11:29:04 +0000 (13:29 +0200)
source/blender/draw/engines/eevee/eevee_lookdev.c

index bd786c0..277caf8 100644 (file)
@@ -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);