Differential D13133 Diff 44443 source/blender/draw/engines/overlay/shaders/outline_prepass_vert.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/shaders/outline_prepass_vert.glsl
| Show All 11 Lines | |||||
| #else | #else | ||||
| flat out uint objectId; | flat out uint objectId; | ||||
| #endif | #endif | ||||
| uint outline_colorid_get(void) | uint outline_colorid_get(void) | ||||
| { | { | ||||
| int flag = int(abs(ObjectInfo.w)); | int flag = int(abs(ObjectInfo.w)); | ||||
| bool is_from_dupli = (flag & DRW_BASE_FROM_DUPLI) != 0; | |||||
| bool is_active = (flag & DRW_BASE_ACTIVE) != 0; | bool is_active = (flag & DRW_BASE_ACTIVE) != 0; | ||||
| if (is_from_dupli) { | |||||
| if (isTransform) { | |||||
| return 0u; /* colorTransform */ | |||||
| } | |||||
| else { | |||||
| return 2u; /* colorDupliSelect */ | |||||
| } | |||||
| } | |||||
| if (isTransform) { | if (isTransform) { | ||||
| return 0u; /* colorTransform */ | return 0u; /* colorTransform */ | ||||
| } | } | ||||
| else if (is_active) { | else if (is_active) { | ||||
| return 3u; /* colorActive */ | return 3u; /* colorActive */ | ||||
| } | } | ||||
| else { | else { | ||||
| return 1u; /* colorSelect */ | return 1u; /* colorSelect */ | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||