parent
c2ef8fcc00
commit
cec084c178
1 changed files with 9 additions and 1 deletions
|
|
@ -33,5 +33,13 @@ std::optional<CBox> CRectPassElement::boundingBox() {
|
|||
}
|
||||
|
||||
CRegion CRectPassElement::opaqueRegion() {
|
||||
return data.color.a >= 1.F ? boundingBox()->expand(-data.round) : CRegion{};
|
||||
if (data.color.a < 1.F)
|
||||
return CRegion{};
|
||||
|
||||
CRegion rg = boundingBox()->expand(-data.round);
|
||||
|
||||
if (!data.clipBox.empty())
|
||||
rg.intersect(data.clipBox);
|
||||
|
||||
return rg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue