|
![](/i/fill.gif) |
I though some (other) beginners might find this useful -
I had quite a job figuring out from the documentation how this would be
done. Ultimately I only managed it by referring to a previous post that
showed how to add two pigments together in RGBt space.
--8<--8<--
//
// Unit RGB cube, centered on the origin.
//
#declare rgbcube =
box {
0, 0.5
pigment {
average
pigment_map {
[ gradient x triangle_wave color_map { [0 color 0 ] [1 color rgb <3,
0, 0> ] } ]
[ gradient y triangle_wave color_map { [0 color 0 ] [1 color rgb <0,
3, 0> ] } ]
[ gradient z triangle_wave color_map { [0 color 0 ] [1 color rgb <0,
0, 3> ] } ]
}
}
translate -0.25
scale 2
}
--8<--8<--
Ray
Post a reply to this message
|
![](/i/fill.gif) |