[orx-shade-styles] Re-introduce color conversion in GradientBase

This commit is contained in:
Edwin Jakobs
2025-03-06 13:05:00 +01:00
parent 3ac541354a
commit 49a3f3ea49
6 changed files with 9 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ open class NPointLinearGradientBase<C>(
float g = (f - p_points[i]) / (p_points[i+1] - p_points[i]);
vec4 gradient = mix(color0, color1, clamp(g, 0.0, 1.0));
${generateColorTransform(colors[0]::class)}
${generateColorTransform(colors[0]::class, "gradient")}
x_fill *= gradient;
if (x_fill.a != 0) {