Mixed Reality Behaviors
Distance Alpha Fading
Description
Distance Alpha Fading is a Behavior Building Block available in Construction Kit.
It receives a value representing the camera position and performs arithmetic operations on it to calculate target node alpha value.
The following operations are performed on input value:
- Map (scale) value from initial range (default 0.00..100.00) to target range (default 0.00..1.00)
- Negate scaled value (changes the range to 0.00..-1.00) by multiplication (default multiplicand is -1.00)
- Increase negated value (changes the range to 1.00..0.00) by addition (default addend is +1.00)
-
Sets calculated alpha value on target node using Set Alpha Value
Common Properties
| Property Name | Type | Description |
|---|---|---|
| Input Min | FeatStd::Optional<FeatStd::Variant>, FeatStd::Float expected | This minimum value has to be set for input value scaling to take effect. |
| Input Max | FeatStd::Optional<FeatStd::Variant>, FeatStd::Float expected | This maximum value has to be set for input value scaling to take effect. |
| Multiplication Value | FeatStd::Variant, FeatStd::Float expected | Multiplies received value by this number (after scaling). |
| Addition Value | FeatStd::Variant, FeatStd::Float expected | Adds this number to received value (after multiplication). |
| Target Node | Candera::AbstractNodePointer | Target node that will have its alpha value set. |