[orx-shade-styles] Re-introduce color conversion in GradientBase
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user