From bb1fb24290654394cd0a32c3a6b3d98e5131088d Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:21 +0100 Subject: feat(render): drawing with multiple texture arrays requires faces to be sorted by depth to work properly, which isn't currently happening --- examples/render-bsp/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/render-bsp/src') diff --git a/examples/render-bsp/src/main.rs b/examples/render-bsp/src/main.rs index 92b7c3f..cab492f 100644 --- a/examples/render-bsp/src/main.rs +++ b/examples/render-bsp/src/main.rs @@ -1,4 +1,4 @@ -// Copyright (C) Oscar Shrimpton 2019 +// Copyright (C) Oscar Shrimpton 2019 // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free @@ -110,11 +110,11 @@ fn main() { window.set_cursor_visible(false); // Parse the map file and swizzle the co-ords - let data = include_bytes!("../data/test.bsp").to_vec().into_boxed_slice(); + let data = include_bytes!("../data/newtest.bsp").to_vec().into_boxed_slice(); let bsp: Result, stockton_levels::types::ParseError> = Q3BSPFile::parse_file(&data); let bsp: Q3BSPFile = bsp.unwrap(); let bsp: Q3BSPFile = bsp.swizzle_to(); - + // Load into a world and create the new renderer let world = World::new(bsp); let mut renderer = Renderer::new(world, &window).unwrap(); -- cgit v1.2.3