Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/contentcreation/orx_artists/FelixSchulthess/skybox/rename.sh @ 5232

Last change on this file since 5232 was 5232, checked in by FelixSchulthess, 15 years ago

I AM A WORLDENTITY TOO

  • Property svn:executable set to *
File size: 555 bytes
Line 
1#!/bin/bash
2dir=${pwd}
3name=$1
4subdir=$2
5if [[ $2 = "" ]] ; then
6        $2="."
7fi
8
9echo "renaming files in ./${2}/ to ${1}_XX.jpg"
10cd $2
11cp 0001.jpg "${1}_BK.jpg"
12cp 0002.jpg "${1}_LF.jpg"
13cp 0003.jpg "${1}_FR.jpg"
14cp 0004.jpg "${1}_RT.jpg"
15cp 0005.jpg "${1}_UP.jpg"
16cp 0006.jpg "${1}_DN.jpg"
17cd $dir
18
19echo -e "creating material script:\n"
20echo -e "material Orxonox/${1}{\n\ttechnique{\n\t\tpass{\n\t\t\tlighting off\n\t\t\tdepth_write off\n\t\t\ttexture_unit{\n\t\t\t\tcubic_texture ${1}.jpg separateUV\n\t\t\t\ttex_address_mode clamp\n\t\t\t}\n\t\t}\n\t}\n}"
Note: See TracBrowser for help on using the repository browser.