2
0
mirror of https://github.com/dpethes/rerogue.git synced 2025-06-07 18:58:32 +02:00

viewer: y coord is flipped for display, so flip x too; otherwise the model looks mirrored

This commit is contained in:
dpethes 2014-11-09 14:21:03 +01:00
parent 5f714ceef5
commit ce9c38a111

View File

@ -87,8 +87,9 @@ begin
v.y := FixRange(fg.vertices[i].y); v.y := FixRange(fg.vertices[i].y);
v.z := FixRange(fg.vertices[i].z); v.z := FixRange(fg.vertices[i].z);
//flip Y for OpenGL coord system, otherwise the model is upside down. //flip Y for OpenGL coord system, otherwise the model is upside down.
//Causes flipping of the texture too, compared to what the game shows //Flip x coord too, otherwise the model looks mirrored
v.y := -v.y; v.y := -v.y;
v.x := -v.x;
_vertices.Add(v); _vertices.Add(v);
group_vertices.Add(v); group_vertices.Add(v);
end; end;