Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[Impeller] CoverGeometry transforms its bounds.
  • Loading branch information
jonahwilliams committed Aug 31, 2023
commit 137a272016a9a3ffb758af73763613c8622c47dc
7 changes: 5 additions & 2 deletions impeller/entity/geometry/cover_geometry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ GeometryResult CoverGeometry::GetPositionBuffer(const ContentContext& renderer,
.vertex_buffer =
{
.vertex_buffer = host_buffer.Emplace(
rect.GetPoints().data(), 8 * sizeof(float), alignof(float)),
rect.GetTransformedPoints(entity.GetTransformation().Invert())
.data(),
8 * sizeof(float), alignof(float)),
.index_buffer = host_buffer.Emplace(
kRectIndicies, 4 * sizeof(uint16_t), alignof(uint16_t)),
.vertex_count = 4,
.index_type = IndexType::k16bit,
},
.transform = Matrix::MakeOrthographic(pass.GetRenderTargetSize()),
.transform = Matrix::MakeOrthographic(pass.GetRenderTargetSize()) *
entity.GetTransformation(),
.prevent_overdraw = false,
};
}
Expand Down