Expand description
Integer-tick centered shutter sampling and linear accumulation.
use motion_core::prelude::*;
let cache = SceneCache::default();
let context = SceneContext::new(
Time::from_frame(1, fps!(30)),
fps!(30),
Size::new(8.0, 4.0),
&cache,
);
let node = context.motion_blur(2.milliseconds(), 2, |sample| {
Node::from(Rect::new(sample.seconds() * 4.0, 0.0, 4.0, 4.0).fill(Color::WHITE))
});
node.compile(
context.size(),
PixelSize::new(8, 4),
ValidationLimits::default(),
)?;Structs§
- Motion
Blur - Global shutter configuration; with exact centered tick offsets.
- Shutter
Sampling - Explicit deterministic jitter, exposure weights and adaptive screen-space sampling.
Enums§
- Shutter
Curve - Normalized temporal exposure profile.
Functions§
- sample_
offsets - Centered integer midpoint offsets, nearest-tick ties away from zero.