ShadowDisplayFilter
Overview
The ShadowDisplayFilter takes in an occluded
aov and an unoccluded
aov to produce shadows of the specified density
and shadow_color
.



shadow_color = green
Attribute Reference
General attributes
density
Float
default: 1.0
Blend value between occluded and unoccluded images. 1 = completely occluded. 0 = completely unoccluded.
occluded
RenderOutput
default: None
RenderOutput containing the occluded image
shadow_color
Rgb
default: [ 0, 0, 0 ]
Color of the shadow
unoccluded
RenderOutput
default: None
RenderOutput containing the unoccluded image
Examples
local occluded = RenderOutput("/output/occluded") {
["file_name"] = "result_tmp.exr",
["result"] = "light aov",
["light_aov"] = "C[RT]L",
}
local unoccluded = RenderOutput("/output/unoccluded") {
["file_name"] = "result_tmp.exr",
["result"] = "light aov",
["light_aov"] = "unoccluded;C[RT]L",
}
local shadow = ShadowDisplayFilter("/display/shadow") {
["occluded"] = occluded,
["unoccluded"] = unoccluded,
["shadow_color"] = Rgb(0,1,0),
["density"] = 0.8
}
RenderOutput("/output/shadow") {
["file_name"] = "result0.exr",
["result"] = "display filter",
["display_filter"] = shadow,
["channel_name"] = "shadow"
}