mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-25 22:07:44 +00:00
When writing half4 normals, fill it with 0.0 instead of 1.0
This commit is contained in:
parent
afe809f33c
commit
5629cc5551
1 changed files with 1 additions and 1 deletions
|
@ -705,7 +705,7 @@ impl MDL {
|
||||||
VertexUsage::Normal => {
|
VertexUsage::Normal => {
|
||||||
match element.vertex_type {
|
match element.vertex_type {
|
||||||
VertexType::Half4 => {
|
VertexType::Half4 => {
|
||||||
MDL::write_half4(&mut cursor, &MDL::pad_slice(&vert.normal, 1.0)).ok()?;
|
MDL::write_half4(&mut cursor, &MDL::pad_slice(&vert.normal, 0.0)).ok()?;
|
||||||
}
|
}
|
||||||
VertexType::Single3 => {
|
VertexType::Single3 => {
|
||||||
MDL::write_single3(&mut cursor, &vert.normal).ok()?;
|
MDL::write_single3(&mut cursor, &vert.normal).ok()?;
|
||||||
|
|
Loading…
Add table
Reference in a new issue