月を描画します。
//**********************************************************************************
#local Cv1 = < 1.0, 1.0, 0.4 >;
#local Md_moon =
media { emission rgb 0.03
intervals 40 samples on,1 confidence 0.9 variance 0.1
density { waves turbulence 0.5 octaves 6 omega 0.58 lambda 2
color_map { [ 0.00 rgbt <0,0,0,1> ]
[ 0.42 rgbt <0,0,0,1> ]
[ 0.50 color rgb Cv1 ]
[ 0.58 rgbt <0,0,0,1> ]
[ 1.00 rgbt <0,0,0,1> ] } translate -9.6*y }
}
#local Moon_seg =
sphere { 0,30 pigment { color rgbt < 1, 1, 1, 1 > }
interior { media { Md_moon scale 130 } } hollow }
object { Moon_seg scale 4.4 translate < 0,40,400 > }
//**********************************************************************************
色を指定するとき、color rgb を使用しますが、このとき、color は省略できます。