scale vertex color properly

This commit is contained in:
Quaternions 2024-03-13 10:48:00 -07:00
parent 28a47e2daf
commit 7e0d402012

View File

@ -44,7 +44,7 @@ where
pos:acquire_pos_id(vertex.pos)?, pos:acquire_pos_id(vertex.pos)?,
tex:acquire_tex_id(vertex.tex), tex:acquire_tex_id(vertex.tex),
normal:acquire_normal_id(vertex.norm)?, normal:acquire_normal_id(vertex.norm)?,
color:acquire_color_id(vertex.color.map(|f|f as f32)) color:acquire_color_id(vertex.color.map(|f|f as f32/255.0f32))
}), }),
))).collect::<Result<_,_>>()?) ))).collect::<Result<_,_>>()?)
} }