]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/light.c
always chmod the release exe file
[xonotic/netradiant.git] / tools / quake3 / q3map2 / light.c
index b531089017809d8d9b02bf3c2513f48848e5f121..a703faacf53e8fff145e897ef42351055e3e62af 100644 (file)
@@ -2258,6 +2258,8 @@ int LightMain( int argc, char **argv )
                {
                        if(*argv[i+1] == '+')
                                lightSamplesInsist = qtrue;
+                       else
+                               lightSamplesInsist = qfalse;
                        lightSamples = atoi( argv[ i + 1 ] );
                        if( lightSamples < 1 )
                                lightSamples = 1;
@@ -2752,6 +2754,11 @@ int LightMain( int argc, char **argv )
                {
                        lightmapExtraVisClusterNudge = qtrue;
                }
+               else if( !strcmp( argv[ i ], "-fill" ) )
+               {
+                       lightmapFill = qtrue;
+                       Sys_Printf( "Filling lightmap colors from surrounding pixels to improve JPEG compression\n" );
+               }
                /* unhandled args */
                else
                {
@@ -2770,13 +2777,22 @@ int LightMain( int argc, char **argv )
                        {
                                /* somewhat okay */
                                case 1:
-                               case 2: lightSamples = 16; break;
+                               case 2:
+                                       lightSamples = 16;
+                                       Sys_Printf( "Adaptive supersampling preset enabled with %d random sample(s) per lightmap texel\n", lightSamples );
+                                       break;
 
                                /* good */
-                               case 3: lightSamples = 64; break;
+                               case 3:
+                                       lightSamples = 64;
+                                       Sys_Printf( "Adaptive supersampling preset enabled with %d random sample(s) per lightmap texel\n", lightSamples );
+                                       break;
 
                                /* perfect */
-                               case 4: lightSamples = 256; break;
+                               case 4:
+                                       lightSamples = 256;
+                                       Sys_Printf( "Adaptive supersampling preset enabled with %d random sample(s) per lightmap texel\n", lightSamples );
+                                       break;
 
                                default: break;
                        }