OverDisplayFilter
Overview
The OverDisplayFilter layers two image buffers, input_top
and input_bottom
, where the mask is applied to the top image buffer.
Attribute Reference
General attributes
alpha
RenderOutput
default: None
Alpha for over operation
input_bottom
RenderOutput
default: None
RenderOutput on bottom
input_top
RenderOutput
default: None
RenderOutput on top
invert_alpha
Bool
default: False
Invert value of alpha
mix
Float
default: 1.0
Blend between input_top and input_bottom, using alpha as a mask.
Examples
local beauty = RenderOutput("/output/beauty") {
["file_name"] = "result_tmp.exr",
["result"] = "beauty",
}
local glossy = RenderOutput("/output/glossy") {
["file_name"] = "result_tmp.exr",
["result"] = "light aov",
["light_aov"] = "glossy"
}
local alpha = RenderOutput("/output/alpha") {
["file_name"] = "result_tmp.exr",
["result"] = "alpha",
["channel name"] = "Alpha",
}
local over = OverDisplayFilter("/display/over") {
["input_top"] = glossy,
["input_bottom"] = beauty,
["alpha"] = alpha,
}
RenderOutput("/output/over") {
["file_name"] = "result0.exr",
["result"] = "display filter",
["display_filter"] = over,
["channel_name"] = "over"
}