-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Make matrix image filter in saving layer work as expected #40171
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,7 +93,7 @@ std::optional<Entity> DirectionalMorphologyFilterContents::RenderFilter( | |
| frame_info.texture_sampler_y_coord_scale = | ||
| input_snapshot->texture->GetYCoordScale(); | ||
|
|
||
| auto transform = entity.GetTransformation() * effect_transform; | ||
| auto transform = entity.GetTransformation() * effect_transform.Basis(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The given effect transform should already have its translation/projective coords stripped. Can we remove the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I modified the implementation of void FilterContents::SetEffectTransform(Matrix effect_transform) {
- effect_transform_ = effect_transform.Basis();
+ effect_transform_ = effect_transform;
} |
||
| auto transformed_radius = | ||
| transform.TransformDirection(direction_ * radius_.radius); | ||
| auto transformed_texture_vertices = | ||
|
|
@@ -162,7 +162,7 @@ std::optional<Rect> DirectionalMorphologyFilterContents::GetFilterCoverage( | |
| if (!coverage.has_value()) { | ||
| return std::nullopt; | ||
| } | ||
| auto transform = inputs[0]->GetTransform(entity) * effect_transform; | ||
| auto transform = inputs[0]->GetTransform(entity) * effect_transform.Basis(); | ||
| auto transformed_vector = | ||
| transform.TransformDirection(direction_ * radius_.radius).Abs(); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.