X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=tools%2Ffix_lightmap;fp=tools%2Ffix_lightmap;h=383617e8b25d1b6f7d50a41bc679153f7286d011;hp=0000000000000000000000000000000000000000;hb=227edd33b520ddf878fc28d36e3486bda665eaeb;hpb=ed7f53639a42b1d8e59abcdbf5c5929a002ead0b diff --git a/tools/fix_lightmap b/tools/fix_lightmap new file mode 100755 index 0000000..383617e --- /dev/null +++ b/tools/fix_lightmap @@ -0,0 +1,21 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "usage: $0 []" >2 + exit 1 +fi + +lmap=$1 + +if [ -z "$2" ]; then + mesh=`echo $lmap | sed 's/_lightmap\..*/.fbx/'` +else + mesh=$2 +fi + +res=exp-$lmap + +cmd="texpand -o $res -uvset 1 -f -mesh $mesh $lmap" +echo "cmd: $cmd" +$cmd +# && feh exp-$lmap