The source and base colors are added together or subtracted from each other, but the amount of each color in the resulting blended color set is controlled by theīlend Weight B is 0.80, then 80% of the base color and 80% of the source color areĪdded together to create the blended color set. The source and base colors are added together, but the amount of each color in the resulting blended color set is controlled by theīlend Weight A is 0.25, then 75% of the base color and 25% of the source color are added together to create the blended color set according to the following formulae:īlended color set = (1- primary blend weight) x base color + primary blend weight x source colorīlended color set alpha = (1- primary blend weight) x base color alpha + primary blend weight x source color alpha Bilinear The resulting color is then applied over the base color using the source alpha to define the opacity of the blended color set according to the following formulae:īlended color set = base color x (source color x source alpha + 1 - source alpha)īlended color set alpha = base color alpha Linear The source color is multiplied by the base color. Apply red and green to the vertices of pPlane1 using two separate color sets, then blend their colors to the second color set After that, delete the first color set Create a poly plane pPlane1 cmds. The resulting color is then applied over the base color using the source alpha to define the opacity of the blended color set according to the following formulae:īlended color set = base color - (source color x source alpha)īlended color set alpha = base color alpha Multiply Python examples import maya.cmds as cmds This example creates two poly color sets for pPlane1. The source color is subtracted from the base color. The resulting color is then applied over the base color using the source alpha to define the opacity of the blended color set according to the following formulae:īlended color set = base color + (source color x source alpha)īlended color set alpha = base color alpha Subtract The source color is added to the base color as if being projected onto the base through a slide projector. The shape of the decal is determined by the source color’s alpha according to the following formulae:īlended color set = source color x source alpha + (base color x (1 - source alpha))īlended color set alpha = 1 - ((1 - base color alpha) x (1 - source color alpha)) Add The source color is applied to the base color like a decal.
0 Comments
Leave a Reply. |