aboutsummaryrefslogtreecommitdiff
path: root/examples/render-bsp/src/main.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:21 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:21 +0100
commitbb1fb24290654394cd0a32c3a6b3d98e5131088d (patch)
treeaf926e6132b6e7c4af2d8c3673c331bbdfc33952 /examples/render-bsp/src/main.rs
parent4163aaeff0542b1f6b00d31c3d3a61fdbc2dbea5 (diff)
feat(render): drawing with multiple texture arrays
requires faces to be sorted by depth to work properly, which isn't currently happening
Diffstat (limited to 'examples/render-bsp/src/main.rs')
-rw-r--r--examples/render-bsp/src/main.rs6
1 files changed, 3 insertions, 3 deletions
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<Q3BSPFile<Q3System>, stockton_levels::types::ParseError> = Q3BSPFile::parse_file(&data);
let bsp: Q3BSPFile<Q3System> = bsp.unwrap();
let bsp: Q3BSPFile<VulkanSystem> = 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();