效果:
代码:
#include "colors.inc"
#include "metals.inc"
#include "glass.inc"
//相机
//这个位置车子刚好落在草地上了
camera {
location <20,2.0,-5>
direction z*1.5
right x*image_width/image_height
look_at <0.5,6,2.5>
}
//设置背景
//作为蓝色的天空
background { color SkyBlue }
//草地
plane {
y, -1.0
texture {
pigment {
color rgb<0.0,1.0,0.0>*0.8
}
normal {
bumps 1.25
scale 0.015
}
}
}
//为天空添加云彩
sphere {
<0, 0, 0>, 4000
hollow
texture{
pigment{
bozo turbulence 0.75
color_map {
[0.0 color rgb <0.95, 0.95, 0.95>]
[0.05 color rgb <1, 1, 1>]