[Bf-blender-cvs] [e70c563aa37] blender2.8: Eevee: Add SSS objects to probe rendering.

Clément Foucault noreply at git.blender.org
Tue Nov 14 21:13:42 CET 2017


Commit: e70c563aa375a18dd272b4d6cad8ae1ef08fbabf
Author: Clément Foucault
Date:   Tue Nov 14 21:13:38 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBe70c563aa375a18dd272b4d6cad8ae1ef08fbabf

Eevee: Add SSS objects to probe rendering.

This does NOT do the SSS diffusion when rendering probe but at least you can see your object without SSS in reflections / bounce light.

===================================================================

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 6274aa8a6e8..aa5624646f3 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -1074,6 +1074,7 @@ static void render_scene_to_probe(
 		/* Shading pass */
 		EEVEE_draw_default_passes(psl);
 		DRW_draw_pass(psl->material_pass);
+		DRW_draw_pass(psl->sss_pass); /* Only output standard pass */
 
 		DRW_framebuffer_texture_detach(sldata->probe_rt);
 	}
@@ -1163,6 +1164,7 @@ static void render_scene_to_planar(
 	/* Shading pass */
 	EEVEE_draw_default_passes(psl);
 	DRW_draw_pass(psl->material_pass);
+	DRW_draw_pass(psl->sss_pass); /* Only output standard pass */
 
 	DRW_state_invert_facing();
 	DRW_state_clip_planes_reset();



More information about the Bf-blender-cvs mailing list