Log inGet started
·
procgraph · drop-in viewer
asset⌬ procgraphprocGraphprimary: init.luau·part ofpackage effectShowcase.package·originates fromworld 0fc7535e-6…

muzzleFlash.procGraph

The bloom at a barrel the instant a weapon fires: a ragged star of light and a tongue of flame down the bore, gone within three frames; a spray of burning powder that streaks out, falls and cools; a few puffs of smoke that swell, rise and thin; and a light that throws the flash o…

byzero-proxy @ DESKTOP-DB3UJOJ·posted 2mo ago
What it does

muzzleFlash

The bloom at a barrel the instant a weapon fires: a ragged star of light and a tongue of flame down the bore, gone within three frames; a spray of burning powder that streaks out, falls and cools; a few puffs of smoke that swell, rise and thin; and a light that throws the flash on whatever stands near.

The bore runs along the effect's -Z. Stand it on a child of the weapon at the muzzle, so it follows the weapon, and play it from the start on each shot:

-- `graph` is this graph's reference: the AssetRef `asset.resolve` or a search returns for it.
local function mountFlash(weapon, muzzleOffset)
    local muzzle = entity.spawn("muzzle", { parent = weapon.id, position = muzzleOffset })
    muzzle.component.add("Generator", { graph = graph, playOn = "manual", ending = "hold" })
    local flash = muzzle.component.get("Generator")
    return function()
        flash:seek(0)
        flash:play()
    end
end
InputDefaultWhat it does
size0.28Width of the flash in metres: a pistol at 0.12, a rifle at 0.28, a tank gun at 1.2. Every layer scales with it.
light1Strength of the light it throws, as a multiple of the default.

It plays 54 frames at 60 fps (0.9 s). Played again, it plays the frames its first play cooked, so a weapon firing on full auto cooks it once.

Interface

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

conforms to

zero/source-extract/v2

muzzleFlash — the bloom at a barrel the instant a weapon fires. Five layers, each the part of a real discharge the eye reads: a ragged star of light at the muzzle and a tongue of flame down the bore line, both gone within three frames; a spray of burning powder streaking out along the bore and cooling from white through orange to nothing; a few puffs of smoke that swell, rise and thin out; and a light that throws the flash onto whatever stands near. Everything is built at a flash 0.28 m across and scaled by `size`, so one graph covers a pistol and a cannon. The bore runs along -Z.

scaled(name: string, points: any, dims: any) → any

Every layer is simulated at the reference size, then its positions and sizes are multiplied by `size / 0.28`.

argtypedescription
namestring
pointsany
dimsany

drawn(name: string, points: any, shader: string, blend: string, properties: any?) → any

argtypedescription
namestring
pointsany
shaderstring
blendstring
propertiesany?

flashLayer(name: string, count: number, lifetime: any, sizeRange: any, velocity: any, dims: any) → any

argtypedescription
namestring
countnumber
lifetimeany
sizeRangeany
velocityany
dimsany
⌬ Metadata
cost{"cookMs":552,"gpuMs":0.2,"measuredOn":"native debug build, headless, on an empty stage in edit mode. `vramBytes` is the peak rise in renderer.gpuMemory() (compute, instances, meshes, textures) over an idle baseline while one play runs from an empty cook cache: its solvers, its instanced draws and the frames its cache holds. `cookMs` is that play's cook time over every frame (playback().cost.cookMs); a play fired while one holds the frames, or after, replays them. `gpuMs` is the peak rise in the frame's measured GPU time over the same baseline, whose own spread is about 0.2 ms, so it is the bound that instrument supports.","vramBytes":531000}descriptionThe bloom at a barrel the instant a weapon fires: a ragged star of light, a tongue of flame down the bore line (-Z), a spray of burning powder, a puff of smoke and a flash of light on the scene, all sized off one width in metres.familycombatkindeffect

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.