[Impeller] fix image shader matrix to 3x3.#166612
[Impeller] fix image shader matrix to 3x3.#166612auto-submit[bot] merged 2 commits intoflutter:masterfrom
Conversation
|
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
flar
left a comment
There was a problem hiding this comment.
I get the general principal, this is used to map the UV coordinates for texture sampling which is an inverse transform (see ColorSourceContents.SetEffectTransform) which means if we maintain the full perspective transform then we are asking where points on the plane come from and the answer is "somewhere in space".
If this happens with other ColorSources then we should implement it for all of them, perhaps in the SetEffectTransform call itself.
Otherwise, pending further investigation, the base concept is approved.
|
I think there is a similar issue for the gradients, but they may need an additional change to funciton properly. I'm going to start with this one. |
Fixes flutter#165205 Our users expect image shader matrices to be converted to 3x3
Fixes #165205
Our users expect image shader matrices to be converted to 3x3