DecalNodeNormalThreshold Property |
Namespace: DigitalRune.Graphics.SceneGraph
Exception | Condition |
---|---|
ArgumentOutOfRangeException | value is negative or greater than π. |
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°).