Skip to main content

sample_effect_param

Function sample_effect_param 

Source
pub fn sample_effect_param(
    animation: &Animated<EffectValue>,
    time: MediaTime,
    context: &SampleContext<'_>,
) -> EffectParamValue
Expand description

Samples one effect parameter with the project’s keyframe semantics.

Float and Vec2 interpolate component-wise. A straight sRGB Color interpolates premultiplied, as CSS does, to avoid a dark fringe when fading from transparent, then clamps to 0..=1. Enum and Bool hold. A data binding gives a Float for scalars and a Vec2 for points, marked interpolated so it is clamped to the parameter’s range.