our $VISFLAGS = '';
# Default flags for the -light stage
- our $LIGHTFLAGS = '-deluxe -patchshadows -samples 3 -lightmapsize 512 -bounce 8 -fastbounce -bouncegrid';
+ our $LIGHTFLAGS = '-deluxe -patchshadows -samples 3 -lightmapsize 512';
# Default flags for the -minimap stage
our $MINIMAPFLAGS = '';
{
my $previous_shaderlist = undef;
my $shaderlist = "";
- if(open my $fh, "<", "$XONOTICDIR/data/xonotic-maps.pk3dir/scripts/shaderlist.txt")
+ if(open my $fh, "<", "$XONOTICDIR/data/scripts/shaderlist.txt")
{
while(<$fh>)
{
}
}
};
+
+ if(defined $shaderlist_new)
+ {
+ mkdir "$mapdir/scripts";
+ open my $fh, ">", "$mapdir/scripts/shaderlist.txt";
+ print $fh $shaderlist_new;
+ close $fh;
+ }
}
local $SIG{INT} = sub
eval
{
- if(defined $shaderlist_new)
- {
- mkdir "$mapdir/scripts";
- open my $fh, ">", "$mapdir/scripts/shaderlist.txt";
- print $fh $shaderlist_new;
- close $fh;
- }
-
unlink <$m/lm_*>; # delete old external lightmaps
q3map2 '-bsp', @{$options->{bsp}}, "$m.map"
or die "-bsp: $?";