Gizmo: press shift key to scale area lights uniformly #104418

Closed
Weizhen Huang wants to merge 13 commits from weizhen:shift_uniform_scale into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

13 Commits

Author SHA1 Message Date
Weizhen Huang 67cb09357e Merge branch 'main' into shift_uniform_scale 2023-02-14 11:02:38 +01:00
Weizhen Huang c5253309da Merge branch 'main' into shift_uniform_scale 2023-02-13 17:51:51 +01:00
Weizhen Huang d219cd25cf Refactor: Gizmo: handle modifier event in gizmo modal instead of gizmo group 2023-02-13 11:46:04 +01:00
Clément Foucault d1b830f3eb Cleanup: GPUShader: Rename `GPU_shader_uniform_vector`
Rename to `GPU_shader_uniform_float/int_ex` to make more sense as a
general purpose function.
2023-02-13 11:46:04 +01:00
Clément Foucault 6bf20d4d5e Cleanup: GPUShader: Remove `GPU_shader_uniform_int/float`
Simplify the API, leaving only one function to set uniform without the
uniform name.
2023-02-13 11:46:04 +01:00
Clément Foucault 699e9369dc GPU: Removes GPU_shader_get_builtin_ssbo
Simplify the API. Use hardcoded ssbo location instead.
2023-02-13 11:46:04 +01:00
Clément Foucault 3b0c887835 Cleanup: GPU: Rename some functions for consistency 2023-02-13 11:46:04 +01:00
Clément Foucault 7396420f39 Cleanup: GPU: Move `eGPUKeyframeShapes` to shader shared
Removes code duplication.
2023-02-13 11:46:04 +01:00
Clément Foucault bfe3239ff7 Cleanup: GPUShader: Reorganize GPU_shader.h to separate depecated API
This avoid confusion to what to use nowadays.
Also improves documentation.
2023-02-13 11:46:04 +01:00
Clément Foucault 589160d05c Cleanup: GPUShader: Split Builtins to their own header
Also improve documentation and cleanup.
2023-02-13 11:46:04 +01:00
Clément Foucault 4099f24817 GPU: Remove GPU_SHADER_3D_POINT_FIXED_SIZE_VARYING_COLOR
This replaces `GPU_SHADER_3D_POINT_FIXED_SIZE_VARYING_COLOR` by
GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_AA`.

None of the usage made sense to not use the AA shader.
Scale the point size to account for the rounded shape.
2023-02-13 11:46:04 +01:00
Clément Foucault 0c87ff3de5 GPU: Move gpu_shader_builtin.c to C++
This also removes all unused part of it now that we have converted all
shaders to use create infos.
2023-02-13 11:46:04 +01:00
Weizhen Huang 46bd037076 Gizmo: press shift key to scale area lights uniformly 2023-02-13 11:21:44 +01:00