-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·76 lines (69 loc) · 2.37 KB
/
Copy pathdev.sh
File metadata and controls
executable file
·76 lines (69 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
scene=$1
RED='\033[0;31m'
BLUE='\033[0;34m'
RESET='\033[0m'
make bonus
printf "\n"
if [ $# == 0 ]; then
printf "${RED}usage ./dev.sh <map_number>\n\n${RESET}"
printf "${BLUE}1 : subject_example.rt\n${RESET}"
printf "${BLUE}2 : subject_disorder.rt.rt\n${RESET}"
printf "${BLUE}3 : one_sphere.rt.rt\n${RESET}"
printf "${BLUE}4 : several_cylinders.rt\n${RESET}"
printf "${BLUE}5 : scene_3spheres.rt\n${RESET}"
printf "${BLUE}6 : ten_spheres.rt\n${RESET}"
printf "${BLUE}7 : shadows.rt\n${RESET}"
printf "${BLUE}8 : shadows_2.rt\n${RESET}"
printf "${BLUE}9 : plane_debug.rt\n${RESET}"
printf "${BLUE}10 : plane_inter_shadow.rt\n${RESET}"
printf "${BLUE}11 : cylinder_debug.rt\n${RESET}"
printf "${BLUE}12 : cylinder_debug_2.rt\n${RESET}"
printf "${BLUE}13 : cylinder_debug_3.rt\n${RESET}"
printf "${BLUE}14 : cylinder_turn_animation.rt\n${RESET}"
printf "${BLUE}15 : sphere_animation.rt\n${RESET}"
printf "${BLUE}16 : plane_debug_2.rt\n${RESET}"
printf "${BLUE}17 : cone_debug.rt\n${RESET}"
printf "${BLUE}18 : several_planes.rt\n${RESET}"
printf "${BLUE}19 : snooker.rt\n${RESET}"
exit 1
fi
if [ $scene == 1 ]; then
./miniRT_bonus scenes/subject_example.rt
elif [ $scene == 2 ]; then
./miniRT_bonus scenes/subject_disorder.rt
elif [ $scene == 3 ]; then
./miniRT_bonus scenes/one_sphere.rt
elif [ $scene == 4 ]; then
./miniRT_bonus scenes/several_cylinders.rt
elif [ $scene == 5 ]; then
./miniRT_bonus scenes/scene_3spheres.rt
elif [ $scene == 6 ]; then
./miniRT_bonus scenes/ten_spheres.rt
elif [ $scene == 7 ]; then
./miniRT_bonus scenes/shadows.rt
elif [ $scene == 8 ]; then
./miniRT_bonus scenes/shadows_2.rt
elif [ $scene == 9 ]; then
./miniRT_bonus scenes/plane_debug.rt
elif [ $scene == 10 ]; then
./miniRT_bonus scenes/plane_inter_shadow.rt
elif [ $scene == 11 ]; then
./miniRT_bonus scenes/cylinder_debug.rt
elif [ $scene == 12 ]; then
./miniRT_bonus scenes/cylinder_debug_2.rt
elif [ $scene == 13 ]; then
./miniRT_bonus scenes/cylinder_debug_3.rt
elif [ $scene == 14 ]; then
./miniRT_bonus scenes/cylinder_turn_animation.rt
elif [ $scene == 15 ]; then
./miniRT_bonus scenes/sphere_animation.rt
elif [ $scene == 16 ]; then
./miniRT_bonus scenes/plane_debug_2.rt
elif [ $scene == 17 ]; then
./miniRT_bonus scenes/cone_debug.rt
elif [ $scene == 18 ]; then
./miniRT_bonus scenes/several_planes.rt
elif [ $scene == 19 ]; then
./miniRT_bonus scenes/snooker.rt
fi