@@ -3261,48 +3261,48 @@ void setup_environment_mapping(camid cid)
32613261
32623262 // face 1 (px / right)
32633263 memset ( &new_orient, 0 , sizeof (matrix) );
3264- new_orient.vec .fvec .xyz .x = - 1 .0f ;
3265- new_orient.vec .uvec .xyz .y = - 1 .0f ;
3266- new_orient.vec .rvec .xyz .z = 1 .0f ;
3264+ new_orient.vec .fvec .xyz .x = 1 .0f ;
3265+ new_orient.vec .uvec .xyz .y = 1 .0f ;
3266+ new_orient.vec .rvec .xyz .z = - 1 .0f ;
32673267 render_environment (i, &cam_pos, &new_orient, new_zoom);
32683268 i++; // bump!
32693269
32703270 // face 2 (nx / left)
32713271 memset ( &new_orient, 0 , sizeof (matrix) );
3272- new_orient.vec .fvec .xyz .x = 1 .0f ;
3273- new_orient.vec .uvec .xyz .y = - 1 .0f ;
3272+ new_orient.vec .fvec .xyz .x = - 1 .0f ;
3273+ new_orient.vec .uvec .xyz .y = 1 .0f ;
32743274 new_orient.vec .rvec .xyz .z = 1 .0f ;
32753275 render_environment (i, &cam_pos, &new_orient, new_zoom);
32763276 i++; // bump!
32773277
32783278 // face 3 (py / up)
32793279 memset ( &new_orient, 0 , sizeof (matrix) );
32803280 new_orient.vec .fvec .xyz .y = (gr_screen.mode == GR_OPENGL) ? -1 .0f : 1 .0f ;
3281- new_orient.vec .uvec .xyz .z = (gr_screen.mode == GR_OPENGL) ? - 1 .0f : 1 .0f ;
3281+ new_orient.vec .uvec .xyz .z = (gr_screen.mode == GR_OPENGL) ? 1 .0f : - 1 .0f ;
32823282 new_orient.vec .rvec .xyz .x = 1 .0f ;
32833283 render_environment (i, &cam_pos, &new_orient, new_zoom);
32843284 i++; // bump!
32853285
32863286 // face 4 (ny / down)
32873287 memset ( &new_orient, 0 , sizeof (matrix) );
32883288 new_orient.vec .fvec .xyz .y = (gr_screen.mode == GR_OPENGL) ? 1 .0f : -1 .0f ;
3289- new_orient.vec .uvec .xyz .z = (gr_screen.mode == GR_OPENGL) ? 1 .0f : - 1 .0f ;
3289+ new_orient.vec .uvec .xyz .z = (gr_screen.mode == GR_OPENGL) ? - 1 .0f : 1 .0f ;
32903290 new_orient.vec .rvec .xyz .x = 1 .0f ;
32913291 render_environment (i, &cam_pos, &new_orient, new_zoom);
32923292 i++; // bump!
32933293
32943294 // face 5 (pz / forward)
32953295 memset ( &new_orient, 0 , sizeof (matrix) );
32963296 new_orient.vec .fvec .xyz .z = 1 .0f ;
3297- new_orient.vec .uvec .xyz .y = - 1 .0f ;
3297+ new_orient.vec .uvec .xyz .y = 1 .0f ;
32983298 new_orient.vec .rvec .xyz .x = 1 .0f ;
32993299 render_environment (i, &cam_pos, &new_orient, new_zoom);
33003300 i++; // bump!
33013301
33023302 // face 6 (nz / back)
33033303 memset ( &new_orient, 0 , sizeof (matrix) );
33043304 new_orient.vec .fvec .xyz .z = -1 .0f ;
3305- new_orient.vec .uvec .xyz .y = - 1 .0f ;
3305+ new_orient.vec .uvec .xyz .y = 1 .0f ;
33063306 new_orient.vec .rvec .xyz .x = -1 .0f ;
33073307 render_environment (i, &cam_pos, &new_orient, new_zoom);
33083308
0 commit comments