Fixes model loading orientation

This commit is contained in:
2024-02-22 01:15:50 -05:00
parent 27717cb1b0
commit cd3949f68d

View File

@@ -202,7 +202,7 @@ namespace fgl::engine
//Fix position to be -Z UP
//verts[ i ].m_position = position_data[ i ];
verts[ i ].m_position =
glm::vec3( position_data[ i ].x, position_data[ i ].y, -position_data[ i ].z );
glm::vec3( position_data[ i ].x, -position_data[ i ].y, position_data[ i ].z );
verts[ i ].m_normal = normals[ i ];
verts[ i ].m_uv = texcoords[ i ];
}