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.
This commit is contained in:
Clément Foucault 2017-11-14 21:13:38 +01:00
parent bc648af4e1
commit e70c563aa3
1 changed files with 2 additions and 0 deletions

View File

@ -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();