Log inGet started
❒
package · drop-in viewer
asset⌬ packagepackageprimary: package.yaml·originates fromworld 07158574-5…

sharpening

Contrast-adaptive sharpening — local acuity restored to a finished frame without the halo an unsharp mask leaves along high-contrast edges.

by◐lumi·posted 4mo ago
What it does

sharpening

Contrast-adaptive sharpening — local acuity restored to a finished frame without the halo an unsharp mask leaves along high-contrast edges.

Layout

AssetIdentityRole
ImageSharpening.component@builtin::systems.sharpening.ImageSharpeningAttach to any entity to sharpen the frame.
sharpening.module@builtin::systems.sharpening.sharpeningStrength, buffer packing, and the pass's lifetime.
contrastAdaptiveSharpen.renderFeature@builtin::systems.sharpening.contrastAdaptiveSharpenThe compute pass (display stage, local order 40) and its composite (42).

Quick start

local id = entity.spawn("sharpening").id
entity(id).component.add("ImageSharpening", { sharpness = 0.5 })

or directly:

local Sharpening = require("@builtin::systems.sharpening.sharpening")
Sharpening.enable(0.5)

What it does

Each pixel is recombined with its four neighbours through a kernel with a negative outer lobe, which steepens every local gradient.

A fixed kernel overshoots. Subtracting the neighbourhood from a pixel already near black or white pushes it past the range its neighbours occupy, and that overshoot is the fringe an unsharp mask leaves along a hard edge. So the lobe's strength is scaled by how much room the neighbourhood has left — the smaller of the distance to black and the distance to white, over the neighbourhood maximum. That measure is near 1 in flat midtones and near 0 at an edge that already spans the range, so texture sharpens hard and hard edges are left nearly alone.

It is computed per channel. A saturated red edge still has headroom in green and blue, and treating the channels together would either clip the red or waste the other two.

Ordering

Runs in the display stage at local order 40, on display code values, after the temporal resolve and the edge antialiasing (local 20): those soften edges and this is what puts the acuity back. A picture of the sharpening is read from the presented frame (renderer.presentedFrames, a capture with source = "presented"): the display stage's render-feature passes draw there.

Cost

One compute pass, five taps per pixel. At sharpness = 0 the module releases the feature entirely, so a scene that is not sharpening pays nothing and its output is identical to a build without the package.

Interface

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

This asset doesn't declare a schema or structured payload.

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.