From: John Tsiombikas Date: Thu, 5 Jan 2017 19:41:11 +0000 (+0200) Subject: fix_lightmap script X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=commitdiff_plain;h=227edd33b520ddf878fc28d36e3486bda665eaeb fix_lightmap script --- 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