| I THINK what you might want to do is embed those into an IMAGE_PATTERN.
The image_pattern will use the image file to determine the mapping values.
Depending on the mapping value, you can either assign a color, or the "pieces"
of the actual image file using image_map.
So, for example -
#declare ImageMap = pigment {image_map {png "ImageFile.png" once} };
texture {
 image_pattern {png "ImageFile.png" use_alpha once}
 texture_map {
  [0.0 SomePigment ]
  [0.3 AnotherPigment ]
  [0.6 pigment { ImageMap }]
  [1.0 pigment { transmit 1 }]  // fully transparent
 }
}
Post a reply to this message
 |