Add alpha parameter to shaders

Lets us add extra opacity.
This commit is contained in:
Ivan Molodetskikh
2025-02-08 13:33:28 +03:00
parent c30f522ef2
commit 4f05a74aa8
22 changed files with 50 additions and 4 deletions
@@ -63,6 +63,7 @@ impl TestCase for GradientAngle {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -84,6 +84,7 @@ impl TestCase for GradientArea {
Rectangle::default(),
CornerRadius::default(),
1.,
1.,
);
rv.extend(
self.border
@@ -103,6 +104,7 @@ impl TestCase for GradientArea {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -44,6 +44,7 @@ impl TestCase for GradientOklab {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -42,6 +42,7 @@ impl TestCase for GradientOklabAlpha {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -44,6 +44,7 @@ impl TestCase for GradientOklchAlpha {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -44,6 +44,7 @@ impl TestCase for GradientOklchDecreasing {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -44,6 +44,7 @@ impl TestCase for GradientOklchIncreasing {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -44,6 +44,7 @@ impl TestCase for GradientOklchLonger {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -44,6 +44,7 @@ impl TestCase for GradientOklchShorter {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -44,6 +44,7 @@ impl TestCase for GradientSrgb {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -42,6 +42,7 @@ impl TestCase for GradientSrgbAlpha {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -44,6 +44,7 @@ impl TestCase for GradientSrgbLinear {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()
@@ -42,6 +42,7 @@ impl TestCase for GradientSrgbLinearAlpha {
0.,
CornerRadius::default(),
1.,
1.,
)
.with_location(area.loc)]
.into_iter()