This commit is contained in:
Quaternions 2024-02-13 18:48:40 -08:00
parent 43a1f968b2
commit fe17804d87

@ -1,10 +1,10 @@
use strafesnet_common::{model,integer,gameplay_attributes};
use strafesnet_common::{map,model,integer,gameplay_attributes};
const VALVE_SCALE:f32=1.0/16.0;
fn valve_transform(v:[f32;3])->integer::Planar64Vec3{
integer::Planar64Vec3::try_from([v[0]*VALVE_SCALE,v[2]*VALVE_SCALE,-v[1]*VALVE_SCALE]).unwrap()
}
pub fn convert<F:FnMut(&str)->Option<model::TextureId>>(bsp:vbsp::Bsp,mut acquire_id:F)->model::CompleteMap{
pub fn convert<F:FnMut(&str)->Option<model::TextureId>>(bsp:vbsp::Bsp,mut acquire_id:F)->map::CompleteMap{
let mut spawn_point=integer::Planar64Vec3::ZERO;
let vertices: Vec<_> = bsp