Vixen
02b45cc4
csharp
public record class MotionBlurAsset

The smear a shutter that is open for a finite time leaves behind.

Read the guide page for this →

Remarks

⚠ Before the tonemap. A smear is light landing on the sensor over an interval, so averaging it is averaging radiance. After the curve it would average two curves' outputs, and a bright object crossing a dark one would smear grey rather than bright.

⚠ It needs a motion-vector target, and a frame gets one exactly one way: a stage whose shader: is MotionVectors, drawn into a colour target of at least two signed channels. A frame that forgot that stage reads zeros everywhere and this node is a copy — the same failure !TemporalAntialiasing has always had.

There is no intensity. The shutter comes off the named view's camera, because Camera.ShutterTime is already what decides the exposure — one number, two answers, which is what the camera component is for. With no view it falls back to a 180° shutter.

Fields and properties (11)

  • public string Name

    The node's name, for debug groups and for a human reading the file.

  • public bool Enabled

    Whether the node runs.

  • public string Source

    The scene colour it smears.

  • public string MotionVectors

    Where every pixel was last frame.

  • public string View

    The view whose camera carries the shutter.

  • public string Output

    The name the result is published under.

  • public PixelFormat Format

    The format of the target it declares.

  • public int Samples

    How many taps the line is sampled with.

  • public bool UseNeighbourMax

    Whether a pixel takes the longest velocity near it rather than only its own.

  • public float MaximumRadius

    The longest smear allowed, in pixels.

  • public float MinimumRadius

    Below this many pixels of motion the pass is a copy.

Used by (4)

  • PostEffectFactoryVixen.Rendering.PostFx
  • PostEffectTestsVixen.Rendering.PostFx.Tests
  • TypeRegistrationVixen.Rendering.PostFx
  • Vixen_Rendering_PostFx_MotionBlurAssetSerializerVixen.Rendering.PostFx