Excerpt |
---|
OverviewThis materials allows the composition of up to three different materials. It is also possible to use any two if the three layers for simpler compositions. This material is designed so that looking the layer stack from the backfacing side composites the layers from bottom to top. This allows, for example, the design of a bottle label that looks different from each side. In a nutshell, this shader can be used to:
Parameters DescriptionTop Layer The input top materials and it's corresponding mask. A mask of [1,1,1] means total coverage and a mask of [0,0,0] means this layer is invisible. Middle Layer Specifies the middle layer color and it's corresponding mask. Bottom Layer Specifies the bottom layer color and it's corresponding mask. Technical DetailsThis materials performs a 3-way composition with is defined as such: Final Color = Over(Top, Top_Mask, Over(Middle, Middle_Mask, Bottom) ) Top and Bottom Layer are reversed in the case of a backfacing surface. And the Over operation is defined as follows: Over(A, mask, B) := A * mask + B * (1-mask); |