|
|
> Not immediately sure, but I /think/ it is because you use a
> pigment_pattern which only reads black/white.
pigment_pattern takes a full-colour pigment and returns a greyscale
pattern. It's useful if you want to use a pigment as a pattern.
For example if you wanted to use a defined pigment instead of "gradient
x" you can do this:
texture {
pigment {
// gradient x
pigment_pattern { myPigment }
pigment_map {
[0.00 Red_Texture]
[0.25 Red_Texture]
[0.75 White_Texture]
[1.00 White_Texture]
}
translate <0.5, 0.5, 0>
rotate 180*y
scale <24, 14, 1>
}
However note the pigment_map is not inside pigment_pattern, otherwise
the Red_Texture or White_Texture would get chosen inside
pigment_pattern, then converted to greyscale (as the OP code did).
Post a reply to this message
|
|