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
|
// This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a
// letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
// Persistence Of Vision Raytracer sample file.
// The TEXTUREn.POV files demonstrate all textures in TEXTURES.INC
camera {
location <0, 5, -30>
right x*image_width/image_height
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 } }
|