Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage motionBlur.package·originates fromworld 07158574-5…

motionBlur

The settings behind the `MotionBlur` component, and the way to drive the shutter from a script — a photo mode that opens it wide, a quality slider that drops the tap count, a cutscene that closes it for a freeze.

by◐lumi·posted 4mo ago
What it does

motionBlur

The settings behind the MotionBlur component, and the way to drive the shutter from a script — a photo mode that opens it wide, a quality slider that drops the tap count, a cutscene that closes it for a freeze.

local motionBlur = require("@builtin::systems.motionBlur.motionBlur")

motionBlur.set({ shutterAngle = 180, samples = 16 })
motionBlur.get()        -- a copy of the settings in force
motionBlur.active()     -- whether the passes are running
motionBlur.clear()      -- close the shutter, keep the settings

set takes any subset of the fields; whatever is omitted keeps its current value. A shutterAngle of 0 releases the render feature entirely rather than running three passes that do nothing, and clear is the named way to say the same thing.

The module packs the settings into the motion_blur_params buffer the passes read, so a change lands on the next frame without recompiling anything.

Shutter angle converts to the fraction of a frame the shutter is open — angle / 360. That fraction multiplies the velocity buffer directly, which is what ties blur length to a physical camera parameter rather than to an arbitrary strength slider.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

module motionBlur Camera-shutter motion blur. Blur length comes from a shutter angle, and the reconstruction lets a moving object smear past its own silhouette instead of stopping dead at its edge. require systems/motionBlur/motionBlur

drawnAt(level: string) → void

What the gather draws at the level its quality puts in force.

argtypedescription
levelstring

num(v: any, fallback: number) → number

argtypedescription
vany
fallbacknumber

pushParams( ) → void

buffers( ) →

The parameter buffer the motion-blur passes read, carrying the settings this module packs at the level in force this frame: a change of the device's quality tier is packed here before the buffer is handed out. The render feature binds what this hands it, on every frame it renders.

examples

local b = motionBlur.buffers()

set(opts: MotionBlurOpts?) → MotionBlurState

Set the camera's shutter. Any omitted field keeps its current value. A `shutterAngle` of 0 closes the shutter and releases the passes.

argtypedescription
optsMotionBlurOpts?Shutter settings — see `MotionBlurOpts`.

examples

motionBlur.set({ shutterAngle = 180, samples = 16 })

get( ) → MotionBlurState

The shutter settings currently in force.

examples

local a = motionBlur.get().shutterAngle

drawn( ) →

What the gather draws now: the quality asked for, the level it puts in force (the device's tier's under "auto") and the taps per pixel at that level.

examples

local d = motionBlur.drawn(); print(d.level, d.samples)

clear( ) → void

Close the shutter and release the passes. The other settings are kept, so a later `set({ shutterAngle = ... })` brings back the same look.

examples

motionBlur.clear()

active( ) → boolean

Whether the motion-blur passes are running this frame.

examples

if motionBlur.active() then ... end
⌬ Types
MotionBlurOpts = {

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.