Click or drag to resize
DigitalRuneDecalNodeNormalThreshold Property
Gets or sets the normal threshold in radians.

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public float NormalThreshold { get; set; }

Property Value

Type: Single
The normal threshold in radians. The default value is π/3 (= 60°).
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is negative or greater than π.
Remarks

When a decal is applied to an uneven surface, such as a corner, it may be stretched along the sides. This can be prevented by setting a normal threshold: The renderer checks whether the normal of the receiving surface is within a certain angle. If the normal deviates by more than the normal threshold, the decal is clipped.

The normal threshold needs to be in the range [0, π]. The default value is π/3 (= 60°).

See Also