environment -texture data/miramar.cubemap -color 0.20 0.25 0.3
# -texture-conv data/miramar-diffuse.cubemap
environment -fog-start 150 -fog-end 300

material -name red_sphere -diffuse 1 0.2 0.1 -specular 0.8 0.8 0.8 -shininess 40 -reflect 0.3
material -name ground -diffuse 1 1 1 -specular 0.2 0.2 0.2 -shininess 10 -reflect 0.3 -texture data/tiles.png
material -name blue_box -diffuse 0.15 0.22 0.8 -specular 0.4 0.4 0.4 -shininess 20 -reflect 0.4
material -name glass -diffuse 0.15 0.15 0.15 -specular 0.9 0.9 0.9 -shininess 50 -reflect 0.9 -trans 0.9 -ior 1.44

material -name stone -diffuse 1 1 1 -specular 0.1 0.1 0.1 -shininess 10 -texture data/stone.jpg
material -name green -diffuse 0.2 0.5 0.2 -specular 0.9 0.9 0.9 -shininess 40 -reflect 0.7

sphere -name bouncy -center 3 0 -3 -radius 1 -material red_sphere
plane -name floor -normal 0 1 0 -distance -1 -material ground
box -name box -min -1 -1 -1 -max 1 1 1 -material blue_box

box -name step -min -0.4 -0.25 -0.4 -max 0.4 -0.15 0.4 -material stone
box -name step2 -min -0.4 -0.25 -0.4 -max 0.4 -0.15 0.4 -material stone
sphere -name glass_sphere -center -3.5 0.5 -2.5 -radius 1.5 -material glass
sphere -name green_sphere -center 0 0.6 0 -radius 1.6 -material green

light -position -10 10 -20 -color 0.8 0.8 0.8
light -position 10 8 0 -color 0.3 0.3 0.3
light -position -1 3 10 -color 0.15 0.15 0.15

xform -name box -extrapolation repeat
xform -name box -pos 0 1 0
xform -name box -time 0 -rot-axis 0 1 0 -rot-angle 0
xform -name box -time 1 -rot-axis 0 1 0 -rot-angle 90
xform -name box -time 2 -rot-axis 0 1 0 -rot-angle 180
xform -name box -time 3 -rot-axis 0 1 0 -rot-angle 270
xform -name box -time 4 -rot-axis 0 1 0 -rot-angle 0

xform -name bouncy -extrapolation pingpong
xform -name bouncy -time 0 -pos 0 2 0
xform -name bouncy -time 0.25 -pos 0 1.84 0
xform -name bouncy -time 0.5 -pos 0 1.6 0
xform -name bouncy -time 0.75 -pos 0 1 0
xform -name bouncy -time 0.875 -pos 0 0.75 0
xform -name bouncy -time 1 -pos 0 0 0

xform -name step -scale 5 5 5 -pos 0 -0.001 0
xform -name step2 -scale 5 5 5 -rot-axis 0 1 0 -rot-angle 45

xform -name floor -scale 8 1 8 -time 0

xform -name green_sphere -extrapolation repeat
xform -name green_sphere -time 0.00 -pos -12.00 0.00 -0.00
xform -name green_sphere -time 0.11 -pos -11.97 1.35 -0.79
xform -name green_sphere -time 0.21 -pos -11.90 2.50 -1.58
xform -name green_sphere -time 0.32 -pos -11.76 3.25 -2.37
xform -name green_sphere -time 0.42 -pos -11.58 3.50 -3.14
xform -name green_sphere -time 0.53 -pos -11.35 3.21 -3.90
xform -name green_sphere -time 0.63 -pos -11.07 2.41 -4.64
xform -name green_sphere -time 0.74 -pos -10.74 1.25 -5.36
xform -name green_sphere -time 0.84 -pos -10.36 0.12 -6.06
xform -name green_sphere -time 0.95 -pos -9.94 1.46 -6.73
xform -name green_sphere -time 1.05 -pos -9.47 2.58 -7.37
xform -name green_sphere -time 1.16 -pos -8.96 3.29 -7.98
xform -name green_sphere -time 1.26 -pos -8.41 3.50 -8.56
xform -name green_sphere -time 1.37 -pos -7.83 3.16 -9.09
xform -name green_sphere -time 1.47 -pos -7.21 2.33 -9.59
xform -name green_sphere -time 1.58 -pos -6.56 1.14 -10.05
xform -name green_sphere -time 1.68 -pos -5.89 0.23 -10.46
xform -name green_sphere -time 1.79 -pos -5.18 1.56 -10.82
xform -name green_sphere -time 1.89 -pos -4.45 2.65 -11.14
xform -name green_sphere -time 2.00 -pos -3.71 3.33 -11.41
xform -name green_sphere -time 2.11 -pos -2.95 3.49 -11.63
xform -name green_sphere -time 2.21 -pos -2.17 3.11 -11.80
xform -name green_sphere -time 2.32 -pos -1.39 2.24 -11.92
xform -name green_sphere -time 2.42 -pos -0.60 1.03 -11.99
xform -name green_sphere -time 2.53 -pos 0.20 0.35 -12.00
xform -name green_sphere -time 2.63 -pos 0.99 1.67 -11.96
xform -name green_sphere -time 2.74 -pos 1.78 2.73 -11.87
xform -name green_sphere -time 2.84 -pos 2.56 3.36 -11.72
xform -name green_sphere -time 2.95 -pos 3.33 3.48 -11.53
xform -name green_sphere -time 3.05 -pos 4.08 3.05 -11.28
xform -name green_sphere -time 3.16 -pos 4.82 2.15 -10.99
xform -name green_sphere -time 3.26 -pos 5.54 0.92 -10.65
xform -name green_sphere -time 3.37 -pos 6.23 0.46 -10.26
xform -name green_sphere -time 3.47 -pos 6.89 1.77 -9.82
xform -name green_sphere -time 3.58 -pos 7.53 2.80 -9.35
xform -name green_sphere -time 3.68 -pos 8.13 3.39 -8.83
xform -name green_sphere -time 3.79 -pos 8.69 3.46 -8.27
xform -name green_sphere -time 3.89 -pos 9.22 2.99 -7.68
xform -name green_sphere -time 4.00 -pos 9.71 2.06 -7.05
xform -name green_sphere -time 4.11 -pos 10.15 0.80 -6.40
xform -name green_sphere -time 4.21 -pos 10.55 0.58 -5.71
xform -name green_sphere -time 4.32 -pos 10.91 1.87 -5.00
xform -name green_sphere -time 4.42 -pos 11.21 2.87 -4.27
xform -name green_sphere -time 4.53 -pos 11.47 3.42 -3.52
xform -name green_sphere -time 4.63 -pos 11.68 3.44 -2.75
xform -name green_sphere -time 4.74 -pos 11.84 2.93 -1.98
xform -name green_sphere -time 4.84 -pos 11.94 1.96 -1.19
xform -name green_sphere -time 4.95 -pos 11.99 0.69 -0.40
xform -name green_sphere -time 5.05 -pos 11.99 0.69 0.40
xform -name green_sphere -time 5.16 -pos 11.94 1.96 1.19
xform -name green_sphere -time 5.26 -pos 11.84 2.93 1.98
xform -name green_sphere -time 5.37 -pos 11.68 3.44 2.75
xform -name green_sphere -time 5.47 -pos 11.47 3.42 3.52
xform -name green_sphere -time 5.58 -pos 11.21 2.87 4.27
xform -name green_sphere -time 5.68 -pos 10.91 1.87 5.00
xform -name green_sphere -time 5.79 -pos 10.55 0.58 5.71
xform -name green_sphere -time 5.89 -pos 10.15 0.80 6.40
xform -name green_sphere -time 6.00 -pos 9.71 2.06 7.05
xform -name green_sphere -time 6.11 -pos 9.22 2.99 7.68
xform -name green_sphere -time 6.21 -pos 8.69 3.46 8.27
xform -name green_sphere -time 6.32 -pos 8.13 3.39 8.83
xform -name green_sphere -time 6.42 -pos 7.53 2.80 9.35
xform -name green_sphere -time 6.53 -pos 6.89 1.77 9.82
xform -name green_sphere -time 6.63 -pos 6.23 0.46 10.26
xform -name green_sphere -time 6.74 -pos 5.54 0.92 10.65
xform -name green_sphere -time 6.84 -pos 4.82 2.15 10.99
xform -name green_sphere -time 6.95 -pos 4.08 3.05 11.28
xform -name green_sphere -time 7.05 -pos 3.33 3.48 11.53
xform -name green_sphere -time 7.16 -pos 2.56 3.36 11.72
xform -name green_sphere -time 7.26 -pos 1.78 2.73 11.87
xform -name green_sphere -time 7.37 -pos 0.99 1.67 11.96
xform -name green_sphere -time 7.47 -pos 0.20 0.35 12.00
xform -name green_sphere -time 7.58 -pos -0.60 1.03 11.99
xform -name green_sphere -time 7.68 -pos -1.39 2.24 11.92
xform -name green_sphere -time 7.79 -pos -2.17 3.11 11.80
xform -name green_sphere -time 7.89 -pos -2.95 3.49 11.63
xform -name green_sphere -time 8.00 -pos -3.71 3.33 11.41
xform -name green_sphere -time 8.11 -pos -4.45 2.65 11.14
xform -name green_sphere -time 8.21 -pos -5.18 1.56 10.82
xform -name green_sphere -time 8.32 -pos -5.89 0.23 10.46
xform -name green_sphere -time 8.42 -pos -6.56 1.14 10.05
xform -name green_sphere -time 8.53 -pos -7.21 2.33 9.59
xform -name green_sphere -time 8.63 -pos -7.83 3.16 9.09
xform -name green_sphere -time 8.74 -pos -8.41 3.50 8.56
xform -name green_sphere -time 8.84 -pos -8.96 3.29 7.98
xform -name green_sphere -time 8.95 -pos -9.47 2.58 7.37
xform -name green_sphere -time 9.05 -pos -9.94 1.46 6.73
xform -name green_sphere -time 9.16 -pos -10.36 0.12 6.06
xform -name green_sphere -time 9.26 -pos -10.74 1.25 5.36
xform -name green_sphere -time 9.37 -pos -11.07 2.41 4.64
xform -name green_sphere -time 9.47 -pos -11.35 3.21 3.90
xform -name green_sphere -time 9.58 -pos -11.58 3.50 3.14
xform -name green_sphere -time 9.68 -pos -11.76 3.25 2.37
xform -name green_sphere -time 9.79 -pos -11.90 2.50 1.58
xform -name green_sphere -time 9.89 -pos -11.97 1.35 0.79
xform -name green_sphere -time 10.00 -pos -12.00 0.00 -0.00
