|
|
"Rune" <run### [at] runevisioncom> wrote in message
news:428cbb92@news.povray.org...
> Slime's macro can be used for creating pigments that are added to what is
> *behind* the object surface. But if you want to also add several of these
> pigments to *each other*, while still using one object surface only, then
> you can still use an average where you multiply all colors (or ambient and
> diffuse values) with the number of pigments being averaged.
>
> So if you use both Slime's macro for the colors *and* the average trick,
> then you can have several pigments that are additive *both* to the
> background *and* to each other. :)
yep, that's what I'm using now :) (see attachment)
only problem now: Additive_Blend(Color, 1, 0) on a given background-color, is
brighter than the background-color + Color.
cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x) // ZK http://www.povplace.com
Post a reply to this message
Attachments:
Download 'lensflare2.jpg' (53 KB)
Preview of image 'lensflare2.jpg'
|
|