Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented May 24, 2023

Fixes flutter/flutter#127486

Combinations of UV mapping and color blending would cause us to double apply the UV mapping which rendered either nothing or garbage.

Before:

image

After:

image

@jonahwilliams jonahwilliams marked this pull request as ready for review May 24, 2023 21:56
@jonahwilliams jonahwilliams requested review from bdero and dnfield May 24, 2023 21:56
@jonahwilliams
Copy link
Contributor Author

Basically we'd end up applying the UV mapping from the VerticesGeometry twice, whereas the second time we really just want to sample the snapshotted rectangle.

I think we should update this implementation to avoid the snapshot for image sources, but that is a more involved change

Copy link
Member

@bdero bdero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label May 24, 2023
@auto-submit auto-submit bot merged commit 4363088 into flutter:main May 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 25, 2023
@jonahwilliams jonahwilliams deleted the fix_uv_and_color_blend branch May 25, 2023 03:21
auto-submit bot pushed a commit that referenced this pull request May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

[Impeller] Canvas.drawVertices() does not work on iOS simulator/device.

3 participants