mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 14:22:39 +00:00
Render: the feather test checks the inner effects still draw inside
The edge comparisons pass when a bevel or inner glow is not drawn at all. A pixel inside the bevel and glow bands now has to differ from the same object without the effect, for every feather kind.
This commit is contained in:
1 parent
6854997294
commit
23eb593498
1 file changed
+10
@@ -736,6 +736,16 @@ mod tests {
|
||||
);
|
||||
}
|
||||
}
|
||||
// Inside the bevel and glow bands the effect still shows, faded with the object
|
||||
// where the feather reaches.
|
||||
let inside = px(&plain, threads, 110);
|
||||
for inner in [1, 2] {
|
||||
let with = px(&doc(image, feather, inner), threads, 110);
|
||||
assert!(
|
||||
diff(with, inside) > 0,
|
||||
"image {image} feather {feather} inner {inner} threads {threads}: {with:?} at 110, {inside:?} without the effect"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user