Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "colors.inc" // Pliki zawieraja predefiniowane elementy sceny
- #include "stones.inc"
- #include "textures.inc"
- #include "shapes.inc"
- #include "glass.inc"
- #include "metals.inc"
- #include "woods.inc"
- camera {location <-1, 20, -7>
- look_at <0, 0.5, 0>
- }
- light_source {<20, 25, -20> color White}
- light_source {<-20, 25, -20> color White}
- plane { y, -2 pigment{hexagon color Black, color White, color Grey}}
- sky_sphere {
- pigment {
- gradient y
- color_map {
- [ 0.5 color Black]
- [ 1.0 color Red ]
- }
- scale 2
- translate -1
- }
- }
- //UNION:
- #declare karta =
- union{
- polygon{
- 4,
- <0,0>,<1,0>,<1,1>,<0,1>
- pigment
- { image_map
- { png "karta2.png"
- map_type 0
- }
- }
- scale<1,1.6,1>
- rotate<90,30,0>
- translate<0,-1.94,0>
- }
- #declare Rnd_1 = seed (1153);
- }
- object {karta
- }
- #declare i=0;
- //----------------------------------
- #for (i, 1, 3000 ,3)
- object {karta
- translate<23*rand(Rnd_1),0.15*rand(Rnd_1),23*rand(Rnd_1)>
- rotate<0,i,0>
- }
- //... do something
- // depending on value of Identifier.
- #end // ------------- end of loop --
- //----------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement