forked from StrafesNET/strafe-client
notes
This commit is contained in:
parent
f412874317
commit
418e3b756e
@ -250,6 +250,7 @@ impl GraphicsState{
|
|||||||
});
|
});
|
||||||
texture_index
|
texture_index
|
||||||
};
|
};
|
||||||
|
//this utm_id is going to take a lot of hashing to generate!
|
||||||
unique_texture_models[utm_id.get() as usize].instances.push(instance);
|
unique_texture_models[utm_id.get() as usize].instances.push(instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -338,6 +338,7 @@ impl From<&model::Mesh> for PhysicsMesh{
|
|||||||
for &v in poly_vertices{
|
for &v in poly_vertices{
|
||||||
dot+=normal.dot(mesh.unique_pos[mesh.unique_vertices[v.get() as usize].pos.get() as usize]);
|
dot+=normal.dot(mesh.unique_pos[mesh.unique_vertices[v.get() as usize].pos.get() as usize]);
|
||||||
}
|
}
|
||||||
|
//assume face hash is stable, and there are no flush faces...
|
||||||
let face=Face{normal,dot:dot/len as i64};
|
let face=Face{normal,dot:dot/len as i64};
|
||||||
let face_id=match face_id_from_face.get(&face){
|
let face_id=match face_id_from_face.get(&face){
|
||||||
Some(&face_id)=>face_id,
|
Some(&face_id)=>face_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user