Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_common_shader_shared.h
| Show All 13 Lines | |||||
| /* Future Plan: These globals were once shared between multiple overlay engines. But now that they | /* Future Plan: These globals were once shared between multiple overlay engines. But now that they | ||||
| * have been merged into one engine, there is no reasons to keep these globals out of the overlay | * have been merged into one engine, there is no reasons to keep these globals out of the overlay | ||||
| * engine. */ | * engine. */ | ||||
| #define UBO_FIRST_COLOR color_wire | #define UBO_FIRST_COLOR color_wire | ||||
| #define UBO_LAST_COLOR color_uv_shadow | #define UBO_LAST_COLOR color_uv_shadow | ||||
| /* Used as ubo but colors can be directly referenced as well */ | /* Used as ubo but colors can be directly referenced as well */ | ||||
| /* NOTE: Also keep all color as vec4 and between #UBO_FIRST_COLOR and #UBO_LAST_COLOR. */ | /* \note Also keep all color as vec4 and between #UBO_FIRST_COLOR and #UBO_LAST_COLOR. */ | ||||
| struct GlobalsUboStorage { | struct GlobalsUboStorage { | ||||
| /* UBOs data needs to be 16 byte aligned (size of vec4) */ | /* UBOs data needs to be 16 byte aligned (size of vec4) */ | ||||
| float4 color_wire; | float4 color_wire; | ||||
| float4 color_wire_edit; | float4 color_wire_edit; | ||||
| float4 color_active; | float4 color_active; | ||||
| float4 color_select; | float4 color_select; | ||||
| float4 color_library_select; | float4 color_library_select; | ||||
| float4 color_library; | float4 color_library; | ||||
| ▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines | |||||