projects
/
neverball
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mym2: fixed missing French accents
[neverball]
/
scripts
/
flip-obj-uv.sh
1
#!/bin/sh
2
3
# Use this script to invert the vertical texture coordinates in a
4
# Wavefront OBJ file.
5
6
for obj; do
7
LC_ALL=C awk '
8
/^vt / {
9
$3 = sprintf("%e", 1.0 - strtonum($3))
10
}
11
{ print }
12
' "$obj" > "$obj".tmp
13
mv -f "$obj".tmp "$obj"
14
done
15