Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/gpu_shader_2D_image_multi_rect_vert.glsl
| /** | /** | ||||
| * Simple shader that just draw multiple icons at the specified locations | * Simple shader that just draw multiple icons at the specified locations | ||||
| * does not need any vertex input (producing less call to immBegin/End) | * does not need any vertex input (producing less call to immBegin/End) | ||||
| **/ | */ | ||||
| /* Same as ICON_DRAW_CACHE_SIZE */ | /* Same as ICON_DRAW_CACHE_SIZE */ | ||||
| #define MAX_CALLS 16 | #define MAX_CALLS 16 | ||||
| uniform vec4 calls_data[MAX_CALLS * 3]; | uniform vec4 calls_data[MAX_CALLS * 3]; | ||||
| out vec2 texCoord_interp; | out vec2 texCoord_interp; | ||||
| flat out vec4 finalColor; | flat out vec4 finalColor; | ||||
| Show All 36 Lines | |||||