You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: control render order with renderInst's sortKey #859
* fix: end point in polygon & path #860
* fix: support webgl1 in hal #851
* feat: add targets config in g-webgl
Co-authored-by: yuqi.pyq <[email protected]>
可以看出填充部分并没有正确应用
opacity
:Blend 相关参数设置的其实是正确的:
在绘制 Path、Polygon 时,填充和描边是分开绘制的,前者通过 earcut 三角化,后者使用 Polyline 绘制。
问题出在绘制顺序上,从下图可以看出几个图形的绘制顺序为:
加入渲染队列的 RenderInst 会使用
sortKey
排序,例如按照不透明和透明。问题出在不能用 Program ID 排序,虽然能减少 Program 切换(上图中 useProgram 一次绘制四个图形),但会影响正确的顺序:正常效果:
参考资料:
The text was updated successfully, but these errors were encountered: