Last change
on this file since 10256 was
5233,
checked in by FelixSchulthess, 16 years ago
|
skybox script
|
-
Property svn:executable set to
*
|
File size:
647 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | dir=${pwd} |
---|
3 | name=$1 |
---|
4 | subdir=$2 |
---|
5 | if [[ $2 = "" ]] ; then |
---|
6 | $2="." |
---|
7 | fi |
---|
8 | |
---|
9 | echo "renaming files in ./${2}/ to ${1}_XX.jpg" |
---|
10 | cd $2 |
---|
11 | cp 0001.jpg "${1}_BK.jpg" |
---|
12 | cp 0002.jpg "${1}_LF.jpg" |
---|
13 | cp 0003.jpg "${1}_FR.jpg" |
---|
14 | cp 0004.jpg "${1}_RT.jpg" |
---|
15 | cp 0005.jpg "${1}_UP.jpg" |
---|
16 | cp 0006.jpg "${1}_DN.jpg" |
---|
17 | cd $dir |
---|
18 | |
---|
19 | echo -e "creating material script:\n" |
---|
20 | echo -e "material Orxonox/${1}\n{" |
---|
21 | echo -e "\ttechnique\n\t{" |
---|
22 | echo -e "\t\tpass\n\t\t{" |
---|
23 | echo -e "\t\t\tlighting off" |
---|
24 | echo -e "\t\t\tdepth_write off" |
---|
25 | echo -e "\t\t\ttexture_unit\n\t\t\t{" |
---|
26 | echo -e "\t\t\t\tcubic_texture ${1}.jpg separateUV" |
---|
27 | echo -e "\t\t\t\ttex_address_mode clamp" |
---|
28 | echo -e "\t\t\t}\n\t\t}\n\t}\n}" |
---|
Note: See
TracBrowser
for help on using the repository browser.