|
![](/i/fill.gif) |
CShake wrote:
> Is there any way to do this in povray, without having to manually edit
> the .tga files in gimp/photoshop?
You can convert between pigments and functions, which should allow
you to do arbitrary color transformations on an image_map, e.g.
#macro from_black(COLOR)
color_map
{
[0 color rgb 0]
[1 color COLOR]
}
#end
#macro pigment_scale(PIGMENT, SCALE)
#local F = function { pigment {PIGMENT} }
#local R = pigment {function {F(x,y,z).red} from_black(3*SCALE*Red) }
#local G = pigment {function {F(x,y,z).green} from_black(3*SCALE*Green)}
#local B = pigment {function {F(x,y,z).blue} from_black(3*SCALE*Blue) }
pigment {average pigment_map {[R] [G] [B]} }
#end
Post a reply to this message
|
![](/i/fill.gif) |