Fix GLSL int to float error in arc code in GrOvalRenderer.
BUG=skia: TBR=robertphillips@google.com NOTRY=true NOTREECHECKS=true GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2263213004 Review-Url: https://codereview.chromium.org/2263213004
This commit is contained in:
parent
4ff08df15a
commit
0515593064
@ -190,7 +190,7 @@ private:
|
||||
fragBuilder->codeAppend("clip *= clamp(circleEdge.z * dot(circleEdge.xy, isectPlane.xy) + isectPlane.z, 0.0, 1.0);");
|
||||
}
|
||||
if (cgp.fInUnionPlane) {
|
||||
fragBuilder->codeAppend("clip += (1-clip)*clamp(circleEdge.z * dot(circleEdge.xy, unionPlane.xy) + unionPlane.z, 0.0, 1.0);");
|
||||
fragBuilder->codeAppend("clip += (1.0 - clip)*clamp(circleEdge.z * dot(circleEdge.xy, unionPlane.xy) + unionPlane.z, 0.0, 1.0);");
|
||||
}
|
||||
fragBuilder->codeAppend("edgeAlpha *= clip;");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user