mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Simplifcation that will allow us to remove the special case position_color.vert and vertices.frag shaders, not done here because drawAtlas also needs to be updated. This also fixes sparkle-party like rendering bugs where we incorrectly relied on a color filter. The problem with doing advanced blends between the vertices with a color filters was three fold: 1. We would render incorrectly when vertices overlapped. 2. We had to disable MSAA to remove artifacts 3. The sub render pass was slow. Below is an example of the incorrect rendering caused by overlapping vertices on the sparkle party app. ## Skia (Advanced blend)  ## Impeller (ToT)  ## Impeller w/ patch  Fixes https://github.com/flutter/flutter/issues/131345