Perhaps subject and some words are not the best - it's my English ...
I want achive color (1-Color) in this script :
#macro NegativeTexture(Color)
texture{pigment{color rgb (1-Color)}}
#end
#declare Color=color rgb 1;
background{color Color}
object{MyObject NegativeTexture(Color)
and this cause MyObject invisible
and cause warning: Suspicious expression after rgb.
But after changing inside macro :
#macro NegativeTexture(Color)
#local MaxColor=color rgb 1;
texture{pigment{color rgb (MaxColor-Color)}}
#end
rendering is fine but still with the same warning.
Is there any way to remove this warning ?
Is there any other proper way to calculate "negation" of color ?
ABX
Post a reply to this message
|