mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-24 21:37:46 +00:00
Remove unused round function in MDL
This commit is contained in:
parent
108d33f166
commit
49a8752462
1 changed files with 0 additions and 5 deletions
|
@ -734,11 +734,6 @@ impl MDL {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_byte_float4(cursor: &mut Cursor<ByteSpan>) -> Option<[f32; 4]> {
|
fn read_byte_float4(cursor: &mut Cursor<ByteSpan>) -> Option<[f32; 4]> {
|
||||||
// TODO: hmmm
|
|
||||||
fn round(x: f32) -> f32 {
|
|
||||||
(x * 100.0).round() / 100.0
|
|
||||||
}
|
|
||||||
|
|
||||||
Some([
|
Some([
|
||||||
(f32::from(cursor.read_le::<u8>().ok()?) / 255.0),
|
(f32::from(cursor.read_le::<u8>().ok()?) / 255.0),
|
||||||
(f32::from(cursor.read_le::<u8>().ok()?) / 255.0),
|
(f32::from(cursor.read_le::<u8>().ok()?) / 255.0),
|
||||||
|
|
Loading…
Add table
Reference in a new issue