Skip to content

Commit

Permalink
Ispravlena opecatka.
Browse files Browse the repository at this point in the history
  • Loading branch information
Panzerschrek committed Jun 25, 2023
1 parent 00fbc24 commit d1bfd40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/square_wheel/partial_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2114,17 +2114,17 @@ impl PartialRenderer
{
// Transform portal vertices and determine BSP leafs, where it is located.
// Use this list as start point for visibility calculation algorithm.
let mut portal_vertices_transofrmed = [Vec3f::zero(); MAX_VERTICES]; // TODO - use uninitialized memory
let mut portal_vertices_transformed = [Vec3f::zero(); MAX_VERTICES]; // TODO - use uninitialized memory
for (out_vertex, in_vertex) in
portal_vertices_transofrmed.iter_mut().zip(portal.vertices.iter())
portal_vertices_transformed.iter_mut().zip(portal.vertices.iter())
{
*out_vertex = (transform_matrix * in_vertex.extend(1.0)).truncate();
}

self.portals_rendering_data.transformed_portal_leafs.clear();
bsp_map_compact::get_convex_hull_bsp_leafs(
&self.map,
&portal_vertices_transofrmed[.. std::cmp::min(portal.vertices.len(), MAX_VERTICES)],
&portal_vertices_transformed[.. std::cmp::min(portal.vertices.len(), MAX_VERTICES)],
&mut self.portals_rendering_data.transformed_portal_leafs,
);
}
Expand Down

0 comments on commit d1bfd40

Please sign in to comment.