| ShadowMaskRendererUpsampleDepthSensitivity Property |
Gets or sets a value controlling the bilateral upsampling. (Only used when
UseHalfResolution is
.)
Namespace: DigitalRune.Graphics.RenderingAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public float UpsampleDepthSensitivity { get; set; }
Public Property UpsampleDepthSensitivity As Single
Get
Set
public:
property float UpsampleDepthSensitivity {
float get ();
void set (float value);
}
member UpsampleDepthSensitivity : float32 with get, set
Property Value
Type:
Single
The depth sensitivity for bilateral upsampling. Use 0 to use bilinear upsampling and disable
bilateral upsampling. Use values greater than 0, to enable bilateral upsampling. The default
value is 1000.
Remarks
If UseHalfResolution is , the shadow mask is created
using the half scene resolution. Creating shadows using the low resolution shadow mask can
create artifacts, e.g. a non-shadowed halo around objects. To avoid these artifacts,
bilateral upsampling can be enabled, by setting UpsampleDepthSensitivity to a
value greater than 0.
For more information about bilateral upsampling, see UpsampleFilter and
DepthSensitivity.
See Also