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

Conversation

@bdero
Copy link
Member

@bdero bdero commented Sep 9, 2022

All output from the fragment stage must be premultiplied.

It looks like somewhere along the way we lost the premultiply for the gradients.

@bdero bdero self-assigned this Sep 9, 2022
@bdero bdero changed the title [Impeller] Premultiply linear gradients [Impeller] Premultiply gradients Sep 9, 2022
@bdero
Copy link
Member Author

bdero commented Sep 9, 2022

image

@jonahwilliams
Copy link
Contributor

I think you need to delete the premultiply here: https://github.com/flutter/engine/blob/main/impeller/geometry/gradient.cc#L12 (and update corresponding tests)

@bdero
Copy link
Member Author

bdero commented Sep 10, 2022

Indeed, this looks good now:
image

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@bdero bdero added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 10, 2022
@bdero bdero changed the title [Impeller] Premultiply gradients [Impeller] Premultiply gradient alpha after the gradient LUT is generated Sep 10, 2022
@auto-submit auto-submit bot merged commit 0b6dcd8 into flutter:main Sep 10, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 10, 2022
zanderso pushed a commit to flutter/flutter that referenced this pull request Sep 12, 2022
…111330)

* 7abd89c90 [web] roll CanvasKit 0.37.0 (flutter/engine#36011)

* dae737f46 Populate dart_library_sources_kernel in the embedder library in JIT mode (flutter/engine#36059)

* 0b6dcd86b [Impeller] Premultiply gradient alpha after the gradient LUT is generated (flutter/engine#36064)
cfontas pushed a commit to cfontas/engine that referenced this pull request Sep 14, 2022
Oleh-Sv pushed a commit to Oleh-Sv/engine that referenced this pull request Sep 28, 2022
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.

2 participants