From 46dab01bcc47b2e29f36cd4d35d04091e4134a67 Mon Sep 17 00:00:00 2001 From: Mozzarella32 <143010987+Mozzarella32@users.noreply.github.com> Date: Mon, 20 Oct 2025 13:22:50 +0200 Subject: renderer: add more uniforms to the screen shader (#11986) These are: pointer_shape from the cursor-shape-v1 protocol prepared for v2, along with left_ptr...bottom_right_corner and killing (Hyprland specific) pointer_shape_previous with pointer_switch_time to blend between shapes pointer_size scaled size as used by the normal cursor pointer_pressed_positions[32] with pointer_pressed_times[32] and pointer_pressed_killed(32 bits) for click/touch animations and if they killed something pointer_inactive_timeout with pointer_last_active to smoothly fade the pointer out pointer_hidden to hide it when the cursor is hidden (excluding by cursor:invisible as this config value can be used to turn off the normal cursor, which is useful when drawing it with the screen shader) --- src/render/Shader.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/render/Shader.hpp') diff --git a/src/render/Shader.hpp b/src/render/Shader.hpp index 780b7fa8..4f545642 100644 --- a/src/render/Shader.hpp +++ b/src/render/Shader.hpp @@ -63,6 +63,18 @@ enum eShaderUniform : uint8_t { SHADER_BRIGHTNESS, SHADER_NOISE, SHADER_POINTER, + SHADER_POINTER_SHAPE, + SHADER_POINTER_SWITCH_TIME, + SHADER_POINTER_SHAPE_PREVIOUS, + SHADER_POINTER_PRESSED_POSITIONS, + SHADER_POINTER_HIDDEN, + SHADER_POINTER_KILLING, + SHADER_POINTER_PRESSED_TIMES, + SHADER_POINTER_PRESSED_KILLED, + SHADER_POINTER_PRESSED_TOUCHED, + SHADER_POINTER_INACTIVE_TIMEOUT, + SHADER_POINTER_LAST_ACTIVE, + SHADER_POINTER_SIZE, SHADER_LAST, }; -- cgit v1.2.3