[Bf-blender-cvs] [540ef7ee8e8] blender2.8: Eevee: Fix broken World probe.
Clément Foucault
noreply at git.blender.org
Tue Sep 26 21:43:25 CEST 2017
Commit: 540ef7ee8e841e23b8df3703824a36ee969281d7
Author: Clément Foucault
Date: Tue Sep 26 21:43:14 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB540ef7ee8e841e23b8df3703824a36ee969281d7
Eevee: Fix broken World probe.
===================================================================
M source/blender/draw/engines/eevee/eevee_lightprobes.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index 4fcb0e45229..9ddf00fd07e 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -1150,6 +1150,7 @@ static void render_world_to_probe(EEVEE_SceneLayerData *sldata, EEVEE_PassList *
pinfo->layer = 0;
perspective_m4(winmat, -0.1f, 0.1f, -0.1f, 0.1f, 0.1f, 1.0f);
+ invert_m4_m4(wininv, winmat);
/* Detach to rebind the right cubeface. */
DRW_framebuffer_bind(sldata->probe_fb);
More information about the Bf-blender-cvs
mailing list