Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_private.h
| Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | else { \ | ||||
| SWAP(struct GPUFrameBuffer *, fbl->main_color_fb, fbl->taa_history_color_fb); \ | SWAP(struct GPUFrameBuffer *, fbl->main_color_fb, fbl->taa_history_color_fb); \ | ||||
| SWAP(GPUTexture *, txl->color, txl->taa_history); \ | SWAP(GPUTexture *, txl->color, txl->taa_history); \ | ||||
| effects->source_buffer = txl->taa_history; \ | effects->source_buffer = txl->taa_history; \ | ||||
| effects->target_buffer = fbl->main_color_fb; \ | effects->target_buffer = fbl->main_color_fb; \ | ||||
| } \ | } \ | ||||
| } \ | } \ | ||||
| ((void)0) | ((void)0) | ||||
| #define LOOK_DEV_OVERLAY_ENABLED(v3d) \ | BLI_INLINE bool eevee_hdri_preview_overlay_enabled(View3D *v3d) | ||||
| ((v3d) && (v3d->shading.type == OB_MATERIAL) && ((v3d->flag2 & V3D_HIDE_OVERLAYS) == 0) && \ | { | ||||
| (v3d->overlay.flag & V3D_OVERLAY_LOOK_DEV)) | /* Only show the HDRI Preview in Shading Preview in the Viewport. */ | ||||
| if (v3d == NULL || v3d->shading.type != OB_MATERIAL) { | |||||
| return false; | |||||
| } | |||||
| /* Only show the HDRI Preview when viewing the Combined render pass */ | |||||
| if (v3d->shading.render_pass != SCE_PASS_COMBINED) { | |||||
| return false; | |||||
| } | |||||
| return ((v3d->flag2 & V3D_HIDE_OVERLAYS) == 0) && (v3d->overlay.flag & V3D_OVERLAY_LOOK_DEV); | |||||
| } | |||||
| #define USE_SCENE_LIGHT(v3d) \ | #define USE_SCENE_LIGHT(v3d) \ | ||||
| ((!v3d) || \ | ((!v3d) || \ | ||||
| ((v3d->shading.type == OB_MATERIAL) && (v3d->shading.flag & V3D_SHADING_SCENE_LIGHTS)) || \ | ((v3d->shading.type == OB_MATERIAL) && (v3d->shading.flag & V3D_SHADING_SCENE_LIGHTS)) || \ | ||||
| ((v3d->shading.type == OB_RENDER) && (v3d->shading.flag & V3D_SHADING_SCENE_LIGHTS_RENDER))) | ((v3d->shading.type == OB_RENDER) && (v3d->shading.flag & V3D_SHADING_SCENE_LIGHTS_RENDER))) | ||||
| #define LOOK_DEV_STUDIO_LIGHT_ENABLED(v3d) \ | #define LOOK_DEV_STUDIO_LIGHT_ENABLED(v3d) \ | ||||
| ((v3d) && (((v3d->shading.type == OB_MATERIAL) && \ | ((v3d) && (((v3d->shading.type == OB_MATERIAL) && \ | ||||
| ((v3d->shading.flag & V3D_SHADING_SCENE_WORLD) == 0)) || \ | ((v3d->shading.flag & V3D_SHADING_SCENE_WORLD) == 0)) || \ | ||||
| ((v3d->shading.type == OB_RENDER) && \ | ((v3d->shading.type == OB_RENDER) && \ | ||||
| ▲ Show 20 Lines • Show All 1,117 Lines • Show Last 20 Lines | |||||