From ce9c38a1118bd06998d27859801bbcaa584a3dd1 Mon Sep 17 00:00:00 2001 From: dpethes Date: Sun, 9 Nov 2014 14:21:03 +0100 Subject: [PATCH] viewer: y coord is flipped for display, so flip x too; otherwise the model looks mirrored --- hob_display/simple_model.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hob_display/simple_model.pas b/hob_display/simple_model.pas index a5e0734..f038a3c 100644 --- a/hob_display/simple_model.pas +++ b/hob_display/simple_model.pas @@ -87,8 +87,9 @@ begin v.y := FixRange(fg.vertices[i].y); v.z := FixRange(fg.vertices[i].z); //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.x := -v.x; _vertices.Add(v); group_vertices.Add(v); end;