Blend
Image/Blend
Mixes or blends together two images, a foreground image on top of a background one, with a configurable blend mode and optional mask (which used with the alpha channel of the top image). The alpha blending for images with alpha channels can also be configured.
About blend
This is a custom markdown documentation extension.
We can extend the automatically generated documentation page with custom contents.
From images to text and tables. Anything is possible!
Input Parameters
- Foreground Image
The top layer of the blend. - Background Image
The bottom layer of the blend. - Mode Enum · Default, Average, Add, Subtract, AddSubtract, Multiply, Divide, Minimum, Maximum, ColorBurn, LinearBurn, ColorDodge, LinearDodge, Screen, Overlay, SoftLight, HardLight, VividLight, LinearLight, PinLight, HardMix, Difference, Exclusion, Negation, Glow, Phoenix, Reflect, Hue, Saturation, Color, Luminosity
Blending mode used for mixing the images. Note. Minimum and Maximum blend nodes are also know as Darken and Lighten. While linear dodge is similar to add except it clamps the maximum value to 1.0. - Opacity Float
Multiplier for the opacity of the foreground image. - InvertMask Boolean
Inverts the alpha channels of the two input images. - SRGB Boolean
Enable to perform the blend in sRGB colorspace.
Advanced
- OpacityMaskMode Enum · Multiply, Divide, ReverseDivide, Add, Subtract, ReverseSubtract, UseMask, Ignore
- OpacityMask Image Grayscale
Optional image that gets multiplied with the alpha of the foreground image. - AlphaMode Enum · Straight, Premultiplied, Foreground, Background, Add, Multiply, Minimum, Maximum, MutuallyExclusive, Ignore
Alpha blending used only for images that have alpha channels present. This can be: straight alpha blending (i.e. Result.rgb = lerp(Top.rgb, Bottom.rgb, Top.a) and Result.a = Top.a + Bottom.a), premultiplied alpha blending (i.e. Result.rgb = Top.rgb + Bottom.rgb * (1.0 - Top.a) and Result.a = Top.a + Bottom.a), source alpha blending (i.e. Result.rgba = lerp(Top.rgba, Bottom.rgba, Top.a) and ingore alpha channels (Result.rgb = Top.rgb and Result.a = 1.0). - BackgroundAlphaMode Enum · Multiply, Maximum, Add, Ignore
- ForegroundPlacement Enum · Stretch, AspectFit, AspectFill, AspectOriginal
- ForegroundAnchor Vec2
- ForegroundPosition Vec2
- Clamp Boolean
Enable to clamp the blended value to the 0...1 range. This should be on to enable your material to execute in "FullRange" identical to "Normalized" formats. Otherwise blends such as "Add" or "Subtract" could lead to negative values with unintended consequences.
Output Parameters
- Output Output Image
Meta
Author | InstaMaterial GmbH | Category | Image/Blend | Tooltip | Mixes or blends together two images, a foreground image on top of a background one, with a configurable blend mode and optional mask (which used with the alpha channel of the top image). The alpha blending for images with alpha channels can also be configured. | Name | Blend | Version | 1.104 | ID | 5fdaddf9-c419-470f-a8e1-48dd2be0b425 | PackageUrl | pkg://8f46a203-9d48-4496-bd8e-759e64efcb6e/atoms/5fdaddf9-c419-470f-a8e1-48dd2be0b425.atom |
---|