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

Commit

Permalink
integrated the rect refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gaaclarke committed Dec 20, 2023
1 parent 2040a7a commit 707f0d5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,11 @@ std::optional<Entity> GaussianBlurFilterContents::RenderFilter(
//
// !input_snapshot->GetCoverage()->Expand(-local_padding)
// .Contains(coverage_hint.value()))
Vector2 downsampled_size = source_rect_padded.size * downsample_scalar;
Vector2 downsampled_size = source_rect_padded.GetSize() * downsample_scalar;
ISize subpass_size =
ISize(round(downsampled_size.x), round(downsampled_size.y));
Vector2 effective_scalar = Vector2(subpass_size) / source_rect_padded.size;
Vector2 effective_scalar =
Vector2(subpass_size) / source_rect_padded.GetSize();

Quad uvs = CalculateUVs(inputs[0], entity, source_rect_padded,
input_snapshot->texture->GetSize());
Expand Down

0 comments on commit 707f0d5

Please sign in to comment.