Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "colors.inc"
- #include "stones.inc"
- #include "textures.inc"
- #include "shapes.inc"
- #include "glass.inc"
- #include "metals.inc"
- #include "woods.inc"
- camera{
- location <5, 10, -15> //Polozenie kamery (wektor)
- look_at <0, 5 , 5> //Punkt na który patrzy
- }
- light_source { <3, 10, -10> color rgb<1,1,1>}
- background { color Blue }
- fog {
- fog_type 1 //constant_fog
- distance 300.0
- rgb <0.4, 0.4, 0.4>
- }
- //wektor normalny do plaszczyzny i jej przesuniecie pigment
- plane { <0, 3, 0>, -1
- pigment{ color rgb <0.7,0.7,0.7>}
- normal { crackle 1.5 // bump depth
- scale 3 }
- }
- //Trzy kulki
- union{
- sphere{
- <0,1,2>,3
- pigment{ color rgb <1,1,1>}
- normal { marble 0.5 scale 0.5 turbulence 1.0}
- }
- sphere{
- <0 ,5, 2>,2.5
- pigment{ color rgb <1,1,1>}
- normal { marble 0.5 scale 0.5 turbulence 1.0}
- }
- sphere{
- <0, 8.15, 2>,1.8
- pigment{ color rgb <1,1,1>}
- normal { marble 0.5 scale 0.5 turbulence 1.0}
- }
- }
- //Guziki (od dołu do góry)
- sphere{
- <0, 1.99, -0.70>,0.2
- pigment{ color rgb <0,0,0>}
- }
- sphere{
- <0, 2.78, -0.35>,0.17
- pigment{ color rgb <0,0,0>}
- }
- sphere{
- <0, 4.45, -0.4>,0.17
- pigment{ color rgb <0,0,0>}
- }
- sphere{
- <0, 5.35, -0.44>,0.17
- pigment{ color rgb <0,0,0>}
- }
- sphere{
- <0, 6.15, -0.15>,0.17
- pigment{ color rgb <0,0,0>}
- }
- //Oczy
- sphere{
- <-0.5, 8.5, 0.3>,0.17
- pigment{ color rgb <0,0,0>}
- }
- sphere{
- <0.5, 8.5, 0.3>,0.17
- pigment{ color rgb <0,0,0>}
- }
- //Nos
- cone{
- <-0.3, 8.15, -1>,0.02
- <0.2, 8.15, 1>,0.23
- rotate <0, 0, 0>
- pigment{ color rgb <1,0,0>}
- normal { bozo 3.00 scale 1}
- }
- //Czapeczka
- union{
- cylinder{
- <0, 9, 2>,
- <0, 11, 2>,
- 1.35
- pigment{ color rgb<0.05, 0.05, 0.05> }
- normal { bumps 0.50 scale 1}
- }
- cylinder{
- <0, 9, 2>,
- <0, 9.4, 2>,
- 1.75
- pigment{ color rgb<0.15, 0.15, 0.15> }
- normal { bumps 0.50 scale 0.67}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement