]> git.mxchange.org Git - flightgear.git/commitdiff
misc tweaks.
authorcurt <curt>
Wed, 9 Oct 2002 14:15:08 +0000 (14:15 +0000)
committercurt <curt>
Wed, 9 Oct 2002 14:15:08 +0000 (14:15 +0000)
src/Objects/matlib.cxx
src/Objects/pt_lights.cxx

index b0b9017b4a4995603379b63259f729b983f91761..346d5c9a53d316389d61207a35c651cb90e6ca64 100644 (file)
@@ -160,7 +160,7 @@ static int gen_vasi_light_map() {
 
             // top half white, bottom half red
             env_map[i][j][0] = 255;
-            if ( i < half_res ) {
+            if ( i >= half_res ) {
                 env_map[i][j][1] = 255;
                 env_map[i][j][2] = 255;
             } else {
index c2f3880b99ae53f3fc216a7763ff23090da4ca00..366a1381e2c31be75321702e69091658fa579c47 100644 (file)
@@ -49,10 +49,13 @@ ssgLeaf *gen_directional_light( sgVec3 pt, sgVec3 dir, sgVec3 up,
     vl->add( tmp3 );
     sgAddVec3( tmp3, perp );
     vl->add( tmp3 );
+    // sgSubVec3( tmp3, up );
+    // vl->add( tmp3 );
 
     nl->add( dir );
     nl->add( dir );
     nl->add( dir );
+    // nl->add( dir );
 
     sgVec4 color;
     sgSetVec4( color, 1.0, 1.0, 1.0, 1.0 );
@@ -60,6 +63,7 @@ ssgLeaf *gen_directional_light( sgVec3 pt, sgVec3 dir, sgVec3 up,
     sgSetVec4( color, 1.0, 1.0, 1.0, 0.0 );
     cl->add( color );
     cl->add( color );
+    // cl->add( color );
 
     /*
     // temporarily do back face
@@ -91,8 +95,7 @@ ssgLeaf *gen_directional_light( sgVec3 pt, sgVec3 dir, sgVec3 up,
     sgSetVec2( tmp2, 1.0, 1.0 );
     tl->add( tmp2 );
     sgSetVec2( tmp2, 0.0, 1.0 );
-    tl->add( tmp2 );
-    */
+    tl->add( tmp2 ); */
 
     ssgLeaf *leaf = 
         new ssgVtxTable ( GL_TRIANGLES, vl, nl, NULL, cl );