Blender
V3.3
|
Go to the source code of this file.
Functions | |
void | workbench_outline_cache_init (WORKBENCH_Data *data) |
Outline Effect:
Simple effect that just samples an object id buffer to detect objects outlines.
Definition in file workbench_effect_outline.c.
void workbench_outline_cache_init | ( | WORKBENCH_Data * | data | ) |
Definition at line 17 of file workbench_effect_outline.c.
References data, DefaultTextureList::depth, DRW_PASS_CREATE, DRW_shgroup_call_procedural_triangles(), DRW_shgroup_create(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_texture(), DRW_STATE_BLEND_ALPHA_PREMUL, DRW_STATE_WRITE_COLOR, DRW_viewport_texture_list_get(), NULL, WORKBENCH_PrivateData::object_id_tx, OBJECT_OUTLINE_ENABLED, WORKBENCH_PassList::outline_ps, sh, state, workbench_shader_outline_get(), and WORKBENCH_PrivateData::world_ubo.
Referenced by workbench_cache_init().