Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_extract_mesh_extractors.c
| Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | if (extractor == &extract_tan) { | ||||
| return &extract_tan_hq; | return &extract_tan_hq; | ||||
| } | } | ||||
| if (extractor == &extract_fdots_nor) { | if (extractor == &extract_fdots_nor) { | ||||
| return &extract_fdots_nor_hq; | return &extract_fdots_nor_hq; | ||||
| } | } | ||||
| return extractor; | return extractor; | ||||
| } | } | ||||
| static const MeshExtract *mesh_extract_override_single_material(const MeshExtract *extractor) | |||||
| { | |||||
| if (extractor == &extract_tris) { | |||||
| return &extract_tris_single_mat; | |||||
| } | |||||
| return extractor; | |||||
| } | |||||
| const MeshExtract *mesh_extract_override_get(const MeshExtract *extractor, | const MeshExtract *mesh_extract_override_get(const MeshExtract *extractor, | ||||
| const bool do_hq_normals) | const bool do_hq_normals, | ||||
| const bool do_single_mat) | |||||
| { | { | ||||
| if (do_hq_normals) { | if (do_hq_normals) { | ||||
| extractor = mesh_extract_override_hq_normals(extractor); | extractor = mesh_extract_override_hq_normals(extractor); | ||||
| } | } | ||||
| if (do_single_mat) { | |||||
| extractor = mesh_extract_override_single_material(extractor); | |||||
| } | |||||
| return extractor; | return extractor; | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* ---------------------------------------------------------------------- */ | /* ---------------------------------------------------------------------- */ | ||||
| /** \name Extract Position and Vertex Normal | /** \name Extract Position and Vertex Normal | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 3,570 Lines • Show Last 20 Lines | |||||