mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-08 17:19:10 -10:00
Use fixed-size slice chunks in the crack projection helper
Follow the CI Clippy suggestion without changing the four-vertex grouping or ignored remainder. Co-Authored-By: Codex GPT-6 <[email protected]>
This commit is contained in:
1 parent
667dd7902a
commit
d454f23ff6
1 file changed
+1
-1
@@ -553,7 +553,7 @@ mod tests {
|
||||
/// sprite over each model face. Pack geometry uses ordinary atlas UVs, not Horizon's overlay codes.
|
||||
fn project_cracks(vertices: &mut [Vertex], sprite: [f32; 4], atlas: [u32; 2]) {
|
||||
let dims = [atlas[0].max(1) as f32, atlas[1].max(1) as f32];
|
||||
for quad in vertices.chunks_exact_mut(4) {
|
||||
for quad in vertices.as_chunks_mut::<4>().0 {
|
||||
let origin = [
|
||||
(quad[0].light & 65535) as f32 / 65535.0,
|
||||
(quad[0].light >> 16) as f32 / 65535.0,
|
||||
|
||||
Reference in new issue
Block a user