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>2017-11-14 23:13:38 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-11-14 23:13:38 +0300
commite70c563aa375a18dd272b4d6cad8ae1ef08fbabf (patch)
treeef1f4f1d49ab1ea43d8f5a1848fb9414231a0ef6 /source/blender/draw
parentbc648af4e1bb9635d6d4fa6ef5d196607a47d2fb (diff)
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.
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/engines/eevee/eevee_lightprobes.c2
1 files changed, 2 insertions, 0 deletions
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();