scale vertex color properly
This commit is contained in:
parent
28a47e2daf
commit
7e0d402012
@ -44,7 +44,7 @@ where
|
||||
pos:acquire_pos_id(vertex.pos)?,
|
||||
tex:acquire_tex_id(vertex.tex),
|
||||
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<_,_>>()?)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user