File: shotxtr.inc

package info (click to toggle)
povray 1%3A3.6.1-12
  • links: PTS
  • area: non-free
  • in suites: lenny, squeeze
  • size: 31,084 kB
  • ctags: 20,310
  • sloc: ansic: 110,032; cpp: 86,573; sh: 13,595; pascal: 5,942; asm: 2,994; makefile: 1,753; ada: 1,637
file content (45 lines) | stat: -rw-r--r-- 897 bytes parent folder | download | duplicates (3)
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
// Persistence Of Vision Raytracer version 3.5 sample file.
// The TEXTUREn.POV files demonstrate all textures in TEXTURES.INC

camera {
   location <0, 5, -30>
   direction <0, 0,  1.35>
   look_at 5*y
}

light_source {<0, 0, -1000> rgb 0.66}

light_source {<150, 50, -200> rgb 0.66}

#local Stack =
union {
   box{-1,1}
   cylinder {y,-y,1 translate 2*y}
   sphere{<0, 4, 0>, 1}
}

#local Dist     =  0;
#local Top      = 10.5;
#local Left     =-12;
#local RowDelta = -7;
#local ColDelta =  3;

#local Row    = 0;
#local RowPos = Top;
#while (Row < 3)
  #local Col    = 0;
  #local ColPos = Left;
  #while (Col<9)
    object {
      Stack
      texture{Textures[Row][Col]}
      translate <ColPos, RowPos, Dist>
    }
    #local Col    = Col+1;
    #local ColPos = ColPos+ColDelta;
  #end
  #local Row      = Row+1;
  #local RowPos   = RowPos+RowDelta;
#end

plane { -z, -1.1 pigment {rgb 1 } }