Skip to content

Commit

Permalink
fix alpha issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdp committed Apr 26, 2024
1 parent a91eaee commit 58a4ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/BasicShape/quadrilateral.fx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ float4 checkPointInQuad(float2 tex:TEXCOORD0,float4 _color:COLOR0):COLOR0{
cross2d(d3,-d4) < 0 ? min(x3,x4) : max(x3,x4),
cross2d(d4,-d1) < 0 ? min(x4,x1) : max(x4,x1),
};
result.a = max(s.x*s.z,s.y*s.w);
result.a *= saturate(max(s.x*s.z,s.y*s.w));
return result;
}

Expand Down

0 comments on commit 58a4ed7

Please sign in to comment.