--- title: "Color Layer" url: "https://help.maxon.net/r3d/cinema/en-us/Content/html/Color%2BLayer.html" section_path: "Shaders > Color Shaders > Color Layer" description: "This shader facilitates 'Photoshop'-style texture blending of stacked texture 'layers', complete with a comprehensive set of Porter-Duff alpha coverage …" --- # Color Layer You are here: # Color Layer ## Introduction This shader facilitates 'Photoshop'-style texture blending of stacked texture 'layers', complete with a comprehensive set of Porter-Duff alpha coverage overlay modes, and is typically used for decal effects or adding dirt/grime. The output of this shader can be chained with other Color Layer shaders to bypass the eight layer slot limit. ![Image: image2017-7-12_16-9-2311db.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/image2017-7-12_16-9-2311db.png) *Redshift decal texture overlaying a brick texture* ![Image: C4D_Color_Layer_Node.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/C4D_Color_Layer_Node.png) ## General Parameters ### Advanced Overlay Options Enables 'advanced' options that gives you more control over how the layers are overlayed and how alpha affects the blending of the layers. When disabled it is assumed that alpha is pre-multiplied into the base and layer textures and the desired Overlay Mode is the commonly used 'Over' technique. ## Base Layer ### Color This is the base color of the layered texture. All subsequent 'layers' will be applied on top of this. ### Color Has Premultiplied Alpha This option informs the shader whether or not the base layer color texture has alpha pre-multiplied into it, which is often the case with 8-bit textures, or if this is the output of a chained Color Layer shader. > **Note:** It is crucial that this option is set correctly for correct overlay blending to occur, particularly when chaining Color Layer shaders. Not doing this can yield unexpected results. ## Layer 1 - 7 There a seven layers that are 'overlayed' on top of each other, each with their own blending and overlay techniques. ### Enable This option enables a layer to be blended on top of previous layers. This option should be disabled when the layer is not used. ### Color This is the color of the layer texture that is to be blended with the previous layers. ### Mask This is an optional texture mask that can be used to affect the alpha of the layer that is being blended. It can be used as a straight up binary mask, or for adjusting the layer transparency. ### Blend Mode This controls how the color of the layer is blended with the color of the previous layers. The 'Photoshop'-style color blending options are are as follows: - Normal - Average - Add - Subtract - Multiply - Difference - Lighten - Darken - Screen - Hardlight - Softlight - Burn - Dodge - Overlay - Exclusion - Divide ### Blend Mode in Detail In the following examples there are only two texture layers in use, the base layer is the Redshift logo and Layer 1 is the multicolored Redshift text. Both textures have their out alpha connected to their respective layers alpha slot. The only thing that changes between each example is the Layer 1 Blend Mode. | | | | --- | --- | | ![Image: rs_logopnga1b9.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/rs_logopnga1b9.png) | ![Image: rs_color_text1807.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/rs_color_text1807.png) | | Base | Layer 1 | ![Image: image2017-9-6_16-23-35a670.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/image2017-9-6_16-23-35a670.png) This example's shader graph. | | | | | | | --- | --- | --- | --- | --- | | ![Image: ColorLayer_Blend_Normal17d2.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Normal17d2.png) | ![Image: ColorLayer_Blend_Averageae5e.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Averageae5e.png) | ![Image: ColorLayer_Blend_Add5cdb.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Add5cdb.png) | ![Image: ColorLayer_Blend_Subtract6f3e.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Subtract6f3e.png) | ![Image: ColorLayer_Blend_Multiplya3a0.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Multiplya3a0.png) | | Normal | Average | Add | Subtract | Multiply | | | | | | | | ![Image: ColorLayer_Blend_Differencebb46.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Differencebb46.png) | ![Image: ColorLayer_Blend_Lightenafc3.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Lightenafc3.png) | ![Image: ColorLayer_Blend_Darken076e.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Darken076e.png) | ![Image: ColorLayer_Blend_Screen3c4d.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Screen3c4d.png) | ![Image: ColorLayer_Blend_Hardlight44cb.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Hardlight44cb.png) | | Difference | Lighten | Darken | Screen | Hardlight | | | | | | | | ![Image: ColorLayer_Blend_Softlight16e3.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Softlight16e3.png) | ![Image: ColorLayer_Blend_Burn37ae.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Burn37ae.png) | ![Image: ColorLayer_Blend_Dodged65c.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Dodged65c.png) | ![Image: ColorLayer_Blend_Overlayfba8.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Overlayfba8.png) | ![Image: ColorLayer_Blend_Exclusion090b.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Exclusion090b.png) | | Softlight | Burn | Dodge | Overlay | Exclusion | | | | | | | | | | ![Image: ColorLayer_Blend_Divideaca3.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Blend_Divideaca3.png) | | | | | | Divide | | | ### Overlay Mode This controls how the layers are overlayed with respect to alpha coverage/transparency. The supported Porter-Duff layering options are as follows: - Src - Atop - Over - In - Out - Dest - DestAtop - DestOver - DestIn - DestOut - Clear - Xor > **Note:** While any Overlay Mode can be combined with any color Blend Mode, the standard results will be achieved when using the 'Normal' Blend Mode. ### Overlay Mode in Detail In the following examples there are only two texture layers in use, the base layer is the Redshift logo and Layer 1 is the black Redshift text. Both textures have their out alpha connected to their respective layers alpha slot. The only thing that changes between each example is the Layer 1 Overlay Mode. | | | | --- | --- | | ![Image: rs_logopnga1b9.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/rs_logopnga1b9.png) | ![Image: rs_logof4d2.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/rs_logof4d2.png) | | Base | Layer 1 | ![Image: image2017-9-6_16-24-59224a.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/image2017-9-6_16-24-59224a.png) This example's shader graph. | | | | | | | --- | --- | --- | --- | --- | | ![Image: ColorLayer_Overlay_Src347a.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_Src347a.png) | ![Image: ColorLayer_Overlay_Atop18d8.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_Atop18d8.png) | ![Image: ColorLayer_Overlay_Overf4b3.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_Overf4b3.png) | ![Image: ColorLayer_Overlay_In3ff4.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_In3ff4.png) | ![Image: ColorLayer_Overlay_Outf2c0.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_Outf2c0.png) | | Src | Atop | Over | In | Out | | | | | | | | ![Image: ColorLayer_Overlay_Dest7978.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_Dest7978.png) | ![Image: ColorLayer_Overlay_DestAtop4975.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_DestAtop4975.png) | ![Image: ColorLayer_Overlay_DestOver2659.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_DestOver2659.png) | ![Image: ColorLayer_Overlay_DestInce9a.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_DestInce9a.png) | ![Image: ColorLayer_Overlay_DestOut13e4.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_DestOut13e4.png) | | Dest | DestAtop | DestOver | DestIn | DestOut | | | | | | | | | | | --- | --- | | ![Image: ColorLayer_Overlay_Clear7216.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_Clear7216.png) | ![Image: ColorLayer_Overlay_Xor5cba.png](https://help.maxon.net/r3d/cinema/en-us/Content/Resources/Images/Thumbnails/ColorLayer_Overlay_Xor5cba.png) | | Clear | Xor | ### Color Has Premultiplied Alpha This option informs the shader whether or not the layer color texture has alpha pre-multiplied into it, which is often the case with 8-bit textures. > **Note:** It is crucial that this option is set correctly for correct overlay blending to occur. Not doing this can yield unexpected results.