Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "colors.inc"
- #include "stones.inc"
- // several different gold colors, finishes and textures
- #include "golds.inc"
- // various metal colors, finishes and textures
- // brass, copper, chrome, silver
- #include "metals.inc"
- // various glass finishes, colors and interiors
- //
- #include "glass.inc"
- // some standard finishes
- #include "finish.inc"
- // The standard collection of textures
- #include "textures.inc"
- background { color Cyan }
- camera {
- location <0, 7, 7>
- look_at <0, 1, 1>
- angle 35
- }
- #declare DeltaSize=0.05;
- #declare Delta=0.5;
- #declare Ctr=-2.5;
- #declare Ctra=1.5;
- #declare Abc = seed(5464564);
- #while (Ctra>-3.5)
- #while (Ctr<2.5)
- difference{
- box{
- #declare DeltaSize = 0.07*rand(Abc);
- <Ctr+0,0,0+Ctra>,
- <Ctr+Delta,0.2,Delta+Ctra>
- pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0> }
- material{ //-----------------------------------------------------------
- texture { pigment{ rgbf <0.98*rand(Abc), 0.98*rand(Abc), 0.98*rand(Abc), 0.099> }
- finish { diffuse 0.1 reflection 0.2
- specular 0.8 roughness 0.0003 phong 1 phong_size 400}
- } // end of texture -------------------------------------------
- interior{ ior 1.5 caustics 0.5
- } // end of interior ------------------------------------------
- } // end of material ----------------------------------------------------
- }
- box{
- <Ctr+0+DeltaSize,-0.01,Ctra+0+DeltaSize>,
- <Ctr+Delta-DeltaSize,0.21,Ctra+Delta-DeltaSize>
- pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0> }
- finish{
- ambient<.95,.95,.95>
- diffuse .5
- reflection{0.1, 0.8}
- }
- interior{
- ior 1.5
- caustics 1
- }
- }
- }
- difference{
- box{
- <Ctr+0+DeltaSize,-0.01,Ctra+0+DeltaSize>,
- <Ctr+Delta-DeltaSize,0.21,Ctra+Delta-DeltaSize>
- //pigment {color rgb <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc)> }
- material{ //-----------------------------------------------------------
- texture { pigment{ rgbf <0.98*rand(Abc), 0.98*rand(Abc), 0.98*rand(Abc), 0.99> }
- normal { bumps 0.5 scale 0.05 }
- finish { diffuse 0.1 reflection 0.2
- specular 0.8 roughness 0.0003 phong 1 phong_size 400}
- } // end of texture -------------------------------------------
- interior{ ior 1.5 caustics 0.5
- } // end of interior ------------------------------------------
- } // end of material ----------------------------------------------------
- }
- box{
- <Ctr+0+DeltaSize,0.01,Ctra+0+DeltaSize>,
- <Ctr+Delta-DeltaSize,0.19,Ctra+Delta-DeltaSize>
- pigment {color rgbf <.5*rand(Abc),.5*rand(Abc),.5*rand(Abc),0.95> }
- }
- }
- #declare Ctr=Ctr+Delta;
- #end
- #declare Ctr=-2.5;
- #declare Ctra=Ctra-Delta;
- #end
- light_source { <0, 15, 10> color White}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement