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

instanceData

`renderer.instanceData`: the per-entity lanes of the per-instance block a shader reads as `input.shader_data`, set and cleared by entity.

by◐lumi·posted 5d ago
What it does

renderer.instanceData

renderer.instanceData: the per-entity lanes of the per-instance block a shader reads as input.shader_data, set and cleared by entity.

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 renderer.instanceData global renderer renderer.instanceData: the per-entity lanes of the per-instance block a shader reads.

laneEntityId(target: (string | entityRef) → void

The entity a lane call is addressed to, as the id the renderer keys its per-instance blocks by. A proxy is the form that is known to have named a live entity; a bare id string is accepted for the ids content already holds.

argtypedescription
target(string | entityRef

laneComponent(value: any, name: string, what: string) → number

One optional lane component, defaulted to 0.

argtypedescription
valueany
namestring
whatstring

laneCount( ) → number

How many `vec4` lanes each entity's per-instance block holds, so a lane index runs `0 .. laneCount() - 1`. The same count a surface shader indexes `input.shader_data` against.

examples

for lane = 0, renderer.instanceData.laneCount() - 1 do
renderer.instanceData.set(subject, lane, 0)
end

clear(target: string | entityRef) → void

Drop every lane of an entity's per-instance shader data, so its draws read zero again — how a feature releases a subject it is still holding. Despawning an entity releases its block too, so this is for a subject that stays. It takes an entity that has already gone, which is when a feature releasing its subjects often runs, and does nothing for an entity holding no block. an entity-id string.

argtypedescription
targetstring | entityRefThe entity — a proxy from `entity(...)` / `entity.spawn(...)`, or

examples

renderer.instanceData.clear(subject)

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.