Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_cryptomatte.c
| Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | if (geoms) { | ||||
| DRW_shgroup_call(grp, geom, ob); | DRW_shgroup_call(grp, geom, ob); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| GPUBatch *geom = DRW_cache_object_surface_get(ob); | GPUBatch *geom = DRW_cache_object_surface_get(ob); | ||||
| if (geom) { | if (geom) { | ||||
| DRWShadingGroup *grp = eevee_cryptomatte_shading_group_create( | DRWShadingGroup *grp = eevee_cryptomatte_shading_group_create( | ||||
| vedata, sldata, ob, false, NULL); | vedata, sldata, ob, NULL, false); | ||||
| DRW_shgroup_call(grp, geom, ob); | DRW_shgroup_call(grp, geom, ob); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| ▲ Show 20 Lines • Show All 340 Lines • Show Last 20 Lines | |||||