//-------------------- Fig. 14-2 wood
// screen size :
// command line Input
// +w400 +H160 +A
#version 3.7
#include "colors.inc"
#include "textures.inc"
#include "Woods.inc"
#include "stones.inc"
#include "glass.inc"
#include "metals.inc"
#include "skies.inc"
#include "stars.inc"
#include "chars.inc"
global_settings
{ assumed_gamma 2.2 }
//-----------------------------camera - light
camera{
location <0,-14,8>
sky <0, 0, 1>
right <-image_width/image_height,0,0>
look_at <0, 0, 0>
angle 25
}
light_source{ <100, -400, 500> color rgb 1.5}
//=================================== <<<<< inc wood
#declare T1= pigment {White_Wood scale 0.3}
#declare T2= texture {T_Wood7 scale 1}
#declare T3= texture {T_Wood35 scale 1}
//------------------------------------object
sphere{ 0,1 texture{T1} rotate -25*z translate -2*x}
cylinder{-z,z,1 texture{T2} rotate -25*z scale 0.75}
box{-1,1 texture{T3} rotate -25*z
scale .75 translate 2*x}
//---------------------------------floor
#declare CA1=rgb<0.85,0.85,0.8>;
#declare CA2=rgb<0.85,0.85,0.8>*1.2;
plane{ z, -1.01
pigment{ checker color CA1, color CA2 scale 0.3 }
}