diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:21 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:21 +0100 |
commit | 4dacd2a58f778818d7c2f4d73980b0967c7202b4 (patch) | |
tree | 5a0f30ca534e195caa4fd7c881b9b88349c9df59 /stockton-levels | |
parent | 939fde5ca405342ab4c52ee3da81fb2daa192e3e (diff) |
fix(levels): fix invalid texture co-ords for vertices
Diffstat (limited to 'stockton-levels')
-rw-r--r-- | stockton-levels/src/traits/vertices.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stockton-levels/src/traits/vertices.rs b/stockton-levels/src/traits/vertices.rs index cea1806..7b14c98 100644 --- a/stockton-levels/src/traits/vertices.rs +++ b/stockton-levels/src/traits/vertices.rs @@ -42,8 +42,8 @@ impl TexCoord { /// Internal function. Converts a slice to a TexCoord. pub fn from_bytes(bytes: &[u8; 16]) -> TexCoord { TexCoord { - u: [slice_to_f32(&bytes[0..4]), slice_to_f32(&bytes[4..8])], - v: [slice_to_f32(&bytes[8..12]), slice_to_f32(&bytes[12..16])], + u: [slice_to_f32(&bytes[0..4]), slice_to_f32(&bytes[8..12])], + v: [slice_to_f32(&bytes[4..8]), slice_to_f32(&bytes[12..16])], } } } |