YimingWu
b0e4c31bb0
Fix #134494 : Grease Pencil: Tint modifier fix on gradient material
...
When a stroke has a gradient fill material that starts with a color with
zero alpha, the tint modifier would behave as if it's not effective at
all, this is caused by referencing source material color only with the
starting color in this case, and since the alpha is zero, the tint is
applied wrongly. Now use average color of start and end color of the
gradient to mix with the tint modifier color.
Note that this isn't technically correct still, since material gradient
is computed in the shader, and tint modifier isn't able to get the
acutal fill color at a given vertex (especially for the radial gradient
case) however the result of this patch looks visually good enough, and
users can always set all alpha to 1 when they feel the color is off.
Pull Request: https://projects.blender.org/blender/blender/pulls/134549
2025-04-11 11:34:58 +02:00
..
2025-04-04 12:04:20 +02:00
2024-12-08 10:41:18 -05:00
2025-03-12 15:43:33 +01:00
2025-02-26 15:56:08 +01:00
2025-03-12 15:43:33 +01:00
2025-03-12 15:43:33 +01:00
2024-12-08 10:41:18 -05:00
2025-01-31 17:03:17 +01:00
2025-03-12 15:43:33 +01:00
2025-03-12 15:43:33 +01:00
2024-12-08 10:41:18 -05:00
2025-01-07 12:39:13 +01:00
2025-03-12 15:43:33 +01:00
2025-04-07 10:42:10 -04:00
2024-07-15 16:39:45 +02:00
2025-01-31 17:03:17 +01:00
2025-03-12 15:43:33 +01:00
2025-01-31 17:03:17 +01:00
2025-03-24 16:59:48 +01:00
2025-02-28 19:33:07 +01:00
2025-02-28 19:33:07 +01:00
2025-01-31 17:03:17 +01:00
2025-03-12 15:43:33 +01:00
2025-03-10 12:03:12 +01:00
2025-01-31 17:03:17 +01:00
2024-12-06 14:08:10 +01:00
2025-02-28 19:33:07 +01:00
2025-01-10 23:31:49 +01:00
2025-02-28 19:33:07 +01:00
2025-02-28 19:33:07 +01:00
2025-01-24 16:45:32 +01:00
2025-02-14 15:54:20 +01:00
2025-01-31 17:03:17 +01:00
2025-01-09 18:11:46 +01:00
2024-12-06 14:08:10 +01:00
2025-01-31 17:03:17 +01:00
2024-12-06 14:08:10 +01:00
2025-02-14 15:54:20 +01:00
2024-12-06 14:08:10 +01:00
2025-03-12 15:43:33 +01:00
2025-04-11 11:34:58 +02:00
2025-01-31 17:03:17 +01:00
2024-11-05 16:35:16 +01:00
2025-01-31 17:03:17 +01:00
2025-01-31 17:03:17 +01:00
2024-12-08 10:41:18 -05:00
2025-04-04 21:05:16 +02:00
2025-04-04 21:05:16 +02:00
2025-01-31 17:03:17 +01:00
2025-01-31 17:03:17 +01:00
2025-01-31 17:03:17 +01:00
2025-01-31 17:03:17 +01:00
2025-01-31 17:03:17 +01:00
2024-08-23 13:09:20 +10:00
2025-01-31 17:03:17 +01:00
2025-01-07 12:39:13 +01:00
2025-03-12 15:43:33 +01:00
2025-03-12 15:43:33 +01:00
2025-04-09 06:50:25 +02:00
2024-12-06 14:08:10 +01:00
2025-03-12 15:43:33 +01:00
2025-04-10 08:56:02 +02:00
2025-01-31 17:03:17 +01:00
2025-04-04 19:16:51 +02:00
2025-01-07 12:39:13 +01:00
2025-03-12 15:43:33 +01:00
2024-07-15 16:39:45 +02:00
2025-03-29 02:52:00 +01:00
2025-03-12 15:43:33 +01:00
2025-01-31 17:03:17 +01:00
2024-12-08 10:41:18 -05:00
2025-02-26 15:56:08 +01:00
2025-03-05 16:35:09 +01:00
2025-03-12 15:43:33 +01:00
2025-01-31 17:03:17 +01:00
2025-03-12 15:43:33 +01:00
2025-03-12 15:43:33 +01:00
2025-01-07 12:39:13 +01:00
2025-01-31 17:03:17 +01:00
2025-03-19 14:10:20 +01:00
2025-03-12 15:43:34 +01:00
2025-03-12 15:43:33 +01:00
2025-02-17 19:44:54 +01:00
2025-03-31 00:36:46 +02:00
2024-12-08 10:41:18 -05:00
2025-02-12 23:01:08 +01:00
2023-09-22 03:18:17 +02:00
2025-03-26 20:51:57 +01:00
2025-02-28 15:46:33 +01:00
2025-01-31 17:03:17 +01:00
2025-01-31 17:03:17 +01:00
2025-03-12 15:43:33 +01:00
2025-03-12 15:43:33 +01:00
2025-04-04 19:16:51 +02:00
2025-03-12 15:43:33 +01:00
2025-01-07 12:39:13 +01:00
2025-03-12 15:43:33 +01:00
2025-03-12 15:43:33 +01:00
2025-03-12 15:43:33 +01:00
2025-01-31 17:03:17 +01:00
2024-12-08 10:41:18 -05:00