Blender Git Loki

Git Commits -> Revision 0bdf4e2

Revision 0bdf4e2 by Jeroen Bakker (master)
October 5, 2019, 15:18 (GMT)
Show Background Image Beneath Transparent Objects (Cycles only)

Camera background images were not shown under transparent objects.
This patch performs an alpha under for background images for cycles.

In order to see the difference the Film transparency needs to be turned on.

Note that workbench and EEVEE still needs to be adapted as they don't
write store alpha value in the viewport.

Side note. This implementation is already an improvement of the current behavior, what users are requesting. (Show background images underneath cycles viewport rendering.) It is clear that this patch still needs to be extended to workbench and eevee. For now that should be marked as a known limitation.

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D5437

Commit Details:

Full Hash: 0bdf4e2f2d1cd9538ac0196db8c302c21d49c860
Parent Commit: 629a1c1
Lines Changed: +109, -56

5 Modified Paths:

/source/blender/draw/intern/draw_manager.c (+17, -3) (Diff)
/source/blender/draw/intern/draw_view.c (+9, -29) (Diff)
/source/blender/draw/intern/draw_view.h (+1, -0) (Diff)
/source/blender/draw/modes/object_mode.c (+80, -24) (Diff)
/source/blender/draw/modes/shaders/object_camera_image_frag.glsl (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021