BlendDisplayFilter
Overview
The BlendDisplayFilter blends between two inputs, input1
and input2
, given some blendAmt
and blendType
.
Attribute Reference
Advanced attributes
invert_mask
Bool
default: False
Invert the value of the mask
mix
Float
default: 1.0
Blend [0,1] between input and output
General attributes
blendAmt
Float
default: 0.5
Float between [0,1] determining amount of blend between input1 and input2
blendType
Int enum
0 = “linear” (default)
1 = “cubic”
Method used to blend between input1 and input2.
input1
RenderOutput
default: None
First RenderOutput to use in the blend operation
input2
RenderOutput
default: None
Second RenderOutput to use in the blend operation
mask
RenderOutput
default: None
RenderOutput used to mask the output, revealing input1
Examples
local beauty = RenderOutput("/output/beauty") {
["file_name"] = "result_tmp.exr",
["result"] = "beauty",
}
local albedo = RenderOutput("/output/albedo") {
["file_name"] = "result_tmp.exr",
["result"] = "material aov",
["material_aov"] = "DSS.color"
}
local blend_linear = BlendDisplayFilter("/display/blend_linear") {
["input1"] = albedo,
["input2"] = beauty,
["blendAmt"] = "0.6",
["blendType"] = "linear"
}
RenderOutput("/output/blend_linear") {
["file_name"] = "result0.exr",
["result"] = "display filter",
["display_filter"] = blend_linear,
["channel_name"] = "blend_linear"
}