(a: &[[f32; 4]; 4], b: &[[f32; 4]; 4])
| 525 | } |
| 526 | |
| 527 | fn mat4_mul(a: &[[f32; 4]; 4], b: &[[f32; 4]; 4]) -> [[f32; 4]; 4] { |
| 528 | let mut out = [[0.0f32; 4]; 4]; |
| 529 | for col in 0..4 { |
| 530 | for row in 0..4 { |
| 531 | out[col][row] = a[0][row]*b[col][0] + a[1][row]*b[col][1] + a[2][row]*b[col][2] + a[3][row]*b[col][3]; |
| 532 | } |
| 533 | } |
| 534 | out |
| 535 | } |
| 536 | |
| 537 | /// Walk the scene graph and collect EVERY world-space transform that |
| 538 | /// references each mesh. Unlike `walk_scene_for_mesh_transforms` which |
no outgoing calls
no test coverage detected