|
|
alphaQuad wrote:
> And the normals
>
> camera { location <0, 5, -10> look_at 0 angle 35 }
> light_source
> { <100, 200, -150>/50, 1
> fade_distance 6 fade_power 2
> area_light x*3, y*3, 12, 12 circular orient adaptive 0
> }
>
> #declare PlankNormal =
> normal
> { gradient x 2 slope_map { [0 <0,1>][.05 <1,0>][.95 <1,0>][1 <0,-1>] }
> scale 2
> };
>
> plane
> { y, -.25
> pigment
> { wood color_map
> { [.4 rgb <.9, .7, .4>]
> [.6 rgb <1, .8, .6>]
> }
> turbulence .5
> scale <1, 1, 10>*.5
> rotate y*20
> }
> normal
> { average normal_map
> { [1 PlankNormal]
> [1 wood .5 slope_map { [0 <0,0>][.5 <.5,1>][1 <1,0>] }
> turbulence .5 scale <1, 1, 10>*.5]
> }
> rotate y*20
> }
> finish { specular .5 reflection .2 }
> }
It would be nice (and polite) if you mentioned where you got that code
from.
Post a reply to this message
|
|