projects
/
laserbrain_demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ExhibitSlots and exhibit placement (initial)
[laserbrain_demo]
/
tools
/
fix_lightmap
1
#!/bin/sh
2
3
if [ -z "$1" ]; then
4
echo "usage: $0 <lightmap> [<mesh file>]" >2
5
exit 1
6
fi
7
8
lmap=$1
9
10
if [ -z "$2" ]; then
11
mesh=`echo $lmap | sed 's/_lightmap\..*/.fbx/'`
12
else
13
mesh=$2
14
fi
15
16
res=exp-$lmap
17
18
cmd="texpand -o $res -uvset 1 -f -mesh $mesh $lmap"
19
echo "cmd: $cmd"
20
$cmd
21
# && feh exp-$lmap