RobynsVeil opened this issue on Jan 24, 2009 · 490 posts
bagginsbill posted Mon, 02 March 2009 at 8:19 AM
The general strategy for masking an effect in matmatic is to do two equations. The first equation describes the math without the effect. The second describes the math with the effect. Then you drive a Blender to run both and choose (or mix) according to the value of the mask.
So:
colorMap = ImageMap("").labelled("Color Map")
color = colorMap
generalTint = SimpleColor(WHITE).labelled("Tint")
freckleTint = SimpleColor(ltBeige).labelled("Freckle Tint")
normalSkinColor = generalTint * color
freckles = Spots(1, freckleTint, ...)
freckledSkinColor = freckles * normalSkinColor
freckleMask = ImageMap("").labelled("Freckle Mask")
color = Blend(normalSkin, freckledSkin, freckleMask)
color = color ** gamma
diffuse = Diffuse(color, ...)
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)