Omar Emara
6365110312
Cleanup: GPU: Remove common_math.glsl includes
...
This patch refactors GPU shaders to remove includes to the utility
gpu_shader_common_math.glsl file. This is done because it has duplicate
functions that exist in other files, and it was really created for use
in GPU material nodes.
The safe_divide and hypot functions were removed since they exist in
gpu_shader_math_base_lib.glsl.
The compatible_[mod|pow] and wrap functions were moved into
gpu_shader_math_base_lib.glsl.
The floor_to_int function was inlined since it was trivial and only used
in one place.
The quick_floor was removed because it was unused.
The euler_to_mat3 function was replaced with the from_rotation function
from gpu_shader_math_matrix_lib.glsl.
Now the file only contains some GPU material node utility functions.
Pull Request: https://projects.blender.org/blender/blender/pulls/135160
2025-02-26 13:37:20 +01:00
..
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2025-02-05 13:39:27 +01:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2024-10-04 15:48:22 +02:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2024-06-11 16:51:04 +02:00
2024-10-04 15:48:22 +02:00
2025-01-28 17:48:34 +01:00
2023-11-27 08:46:23 +01:00
2024-10-04 15:48:22 +02:00
2025-02-26 13:37:20 +01:00
2023-10-30 21:40:35 +01:00
2025-02-26 13:37:20 +01:00
2024-10-04 15:48:22 +02:00
2023-11-27 11:50:25 +01:00
2024-04-26 17:39:39 +02:00
2024-10-04 15:48:22 +02:00
2024-01-09 16:39:17 +13:00
2023-08-24 10:57:03 +10:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2025-02-12 15:45:04 +01:00
2025-02-26 13:37:20 +01:00
2025-02-26 13:37:20 +01:00
2024-08-27 17:20:46 +02:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2025-02-26 13:37:20 +01:00
2023-11-07 18:58:31 +01:00
2023-08-24 10:57:03 +10:00
2024-05-16 14:37:32 +02:00
2023-08-24 10:57:03 +10:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2025-02-19 17:11:08 +01:00
2024-10-04 15:48:22 +02:00
2024-04-29 12:37:51 +02:00
2023-11-27 11:50:25 +01:00
2025-01-21 18:05:56 +01:00
2024-10-04 15:48:22 +02:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2024-01-09 16:39:17 +13:00
2023-08-24 10:57:03 +10:00
2025-01-28 17:48:34 +01:00
2024-10-04 15:48:22 +02:00
2025-02-26 13:37:20 +01:00
2023-08-24 10:57:03 +10:00
2025-02-26 13:37:20 +01:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2024-10-04 15:48:22 +02:00
2023-08-24 10:57:03 +10:00
2024-10-04 15:48:22 +02:00
2023-11-27 12:06:28 +01:00
2025-02-26 13:37:20 +01:00
2024-10-04 15:48:22 +02:00
2024-10-04 15:48:22 +02:00
2024-10-04 15:48:22 +02:00
2024-01-09 16:39:17 +13:00
2024-10-07 12:54:10 +02:00
2023-12-13 02:19:19 +01:00
2023-11-27 11:50:25 +01:00
2023-08-24 10:57:03 +10:00
2024-10-04 15:48:22 +02:00
2025-02-26 13:37:20 +01:00
2025-02-26 13:37:20 +01:00
2023-08-24 10:57:03 +10:00
2023-11-27 11:50:25 +01:00
2024-10-04 15:48:22 +02:00
2024-10-02 11:12:53 +02:00
2025-02-26 13:37:20 +01:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00
2023-08-24 10:57:03 +10:00