Workbench: Flipping MatCaps for forward shading
[blender.git] / source / blender / draw / engines / workbench / workbench_deferred.c
index e1cb8b482ab7223c9bf50cbd9821d654315b7cea..b02c8ef3a4fb885ca359aa061fa9fd23dd4be35a 100644 (file)
@@ -113,7 +113,7 @@ static char *workbench_build_composite_frag(WORKBENCH_PrivateData *wpd)
        BLI_dynstr_append(ds, datatoc_workbench_common_lib_glsl);
        BLI_dynstr_append(ds, datatoc_workbench_background_lib_glsl);
 
-       if ((wpd->shading.light & V3D_LIGHTING_STUDIO) || (wpd->shading.flag & V3D_SHADING_SPECULAR_HIGHLIGHT)) {
+       if ((wpd->shading.light & V3D_LIGHTING_MATCAP) || (wpd->shading.light & V3D_LIGHTING_STUDIO) || (wpd->shading.flag & V3D_SHADING_SPECULAR_HIGHLIGHT)) {
                BLI_dynstr_append(ds, datatoc_workbench_world_light_lib_glsl);
        }
        if (wpd->shading.flag & V3D_SHADING_OBJECT_OUTLINE) {