Commit: c941e3080af5c6affb224196f63d1358b7d804b6

Author: safety0ff <[email protected]>
Date:   Sat Oct  9 16:44:48 2010 -0400

Undo rotation after drawing fogbox so that the skybox doesn't rotate with the 
viewer.

 src/display3d.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/display3d.c b/src/display3d.c
index e5111de..9becff1 100644
--- a/src/display3d.c
+++ b/src/display3d.c
@@ -3613,6 +3613,11 @@ static void renderSurroundings(void)
        // undo the translation
        pie_TRANSLATE(rx,player.p.y,-rz);
 
+       // undo rotation
+       pie_MatRotY(-player.r.y);
+       pie_MatRotX(-player.r.x);
+       pie_MatRotZ(-player.r.z);
+
        // Skybox //
        // rotate it
        pie_MatRotY(DEG(1) * wind);


-------------------------


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Warzone2100-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits

Reply via email to