ネギの色を指定します。
//**********************************************************************************
#local T_leek_l = texture {
pigment { crackle form <-0.25,0.25,0> metric 1.5 offset 0.5 scale 1.5
color_map { [ 0.0 color YSH(<0.18,0.24,98>) ]
[ 0.5 color YSH(<0.52,0.24,98>) ] } }
}
#local T_leek_t = texture {
pigment { gradient y
color_map { [ 0.0 color YSH(<0.52,0.24,98>) ]
[ 1.0 color rgb 1 ] } scale 56 rotate 180*z translate 4*y }
}
#local P_leek =
pigment { gradient x
color_map { [ 0.0 color YSH(<0.7,0.6,60>) ]
[ 1/4 color rgb 1 ]
[ 3/4 color YSH(<0.7,0.6,30>) ]
[ 1.0 color rgb 1 ] } }
#local T_leek =
texture { gradient y
texture_map { [ 0.0 P_leek ]
[ 1/4 pigment { color rgb 1 } ]
[ 1.0 pigment { color rgb 1 } ] } }
//**********************************************************************************