summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/portedasteroids/sprites/ship/ship.pov
blob: 8f185cd7b52e334dcdb3043f765a4bd5deea0ebb (plain)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128

#version 3.0
global_settings { assumed_gamma 2.0 }

#include "colors.inc"
#include "textures.inc"
#include "metals.inc"

camera {
  orthographic
  up <0, 130, 0>
  right <130, 0, 0>
  location <0, 0, -130>
  look_at <0, 0, 0>
}

light_source { <50, 25, -25> colour White }
light_source { <0, 0, -100> colour Gray80 }

#declare ShipColor = color red 1.0 green 1.0 blue 0.9

#declare BaseTexture =
texture {
    pigment { ShipColor }
}

#declare Grubby =
texture {
    pigment {
        bozo
        color_map {
            [0.0 color rgbt <1, 1, 1, 1>]
            [0.8 color rgbt <0.9, 0.9, 0.9, 0.5>]
            [1.0 color rgbt <0.8, 0.8, 0.8, 0.5>]
        }
        turbulence 2.0
        scale 3
    }
}

#declare ShipTexture =
texture { BaseTexture }
texture { Grubby }

union {
    cone {
	<12, 0, 0>, 0.5
	<11, 0, 0>, 1.0
	texture { ShipTexture }
    }
    cone {
	<11, 0, 0>, 1.0
	<8, 0, 0>, 2.0
	texture { ShipTexture }
    }
    cone {
	<8, 0, 0>, 2.0
	<3.5, 0, 0>, 3.8
	texture { ShipTexture }
    }
    difference {
        cone {
            <8, 0, -0.01>, 2.0
            <3.5, 0, -0.01>, 3.8
            pigment { color Gray20 }
        }
        box {
            <9, -4.0, -3.7>,
            <2, 4.0, 10>
            rotate <0, -18, 0>
        }
        box {
            <6.5, -4.0, -8>,
            <10, 4.0, 8>
        }
        box {
            <2, -4.0, -8>,
            <4.5, 4.0, 8>
        }
    }
    cone {
	<3.5, 0, 0>, 3.8
	<2, 0, 0>, 4.0
	texture { ShipTexture }
    }
    cylinder {
        <2, 0, 0>,
        <-9, 0, 0>,
        4.0
        texture { ShipTexture }
    }
    cone {
	<-9, 0, 0>, 4.0
	<-10, 0, 0>, 3.5
	texture { ShipTexture }
    }
    prism {
	linear_sweep
	linear_spline
	0,
	0.5,
	4,
	<7.5, 0>, <-7.5, 10>, <-7.5, -10>, <7.5, 0>
	rotate <90, 0, 0>
	texture { T_Silver_2A }
	texture { ShipTexture }
    }
    prism {
	linear_sweep
	linear_spline
	-0.5,
	0.5,
	4,
	<4, 0>, <-7.5, 5>, <-7.5, -5>, <4, 0>
	pigment { color White }
    }
    cone {
	<-12, 0, 0>, 3.0
	<-10, 0, 0>, 2.0
	texture { T_Silver_2A }
	pigment { color Gray60 }
    }

    rotate <0, 0,-360*clock>
    scale <5, 5, 5>
}