Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_forward.c
| Show First 20 Lines • Show All 676 Lines • ▼ Show 20 Lines | |||||
| void workbench_forward_draw_scene(WORKBENCH_Data *vedata) | void workbench_forward_draw_scene(WORKBENCH_Data *vedata) | ||||
| { | { | ||||
| WORKBENCH_PassList *psl = vedata->psl; | WORKBENCH_PassList *psl = vedata->psl; | ||||
| WORKBENCH_StorageList *stl = vedata->stl; | WORKBENCH_StorageList *stl = vedata->stl; | ||||
| WORKBENCH_FramebufferList *fbl = vedata->fbl; | WORKBENCH_FramebufferList *fbl = vedata->fbl; | ||||
| WORKBENCH_PrivateData *wpd = stl->g_data; | WORKBENCH_PrivateData *wpd = stl->g_data; | ||||
| DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); | DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); | ||||
| if (TAA_ENABLED(wpd)) { | if (workbench_is_taa_enabled(wpd)) { | ||||
| workbench_taa_draw_scene_start(vedata); | workbench_taa_draw_scene_start(vedata); | ||||
| } | } | ||||
| /* Write Depth + Object ID */ | /* Write Depth + Object ID */ | ||||
| const float clear_outline[4] = {0.0f}; | const float clear_outline[4] = {0.0f}; | ||||
| GPU_framebuffer_bind(fbl->object_outline_fb); | GPU_framebuffer_bind(fbl->object_outline_fb); | ||||
| GPU_framebuffer_clear_color(fbl->object_outline_fb, clear_outline); | GPU_framebuffer_clear_color(fbl->object_outline_fb, clear_outline); | ||||
| DRW_draw_pass(psl->object_outline_pass); | DRW_draw_pass(psl->object_outline_pass); | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||