SECOND STAGE // MANUAL UNIFORMS

PANEL SHADER POTRET

The shader without the choreography

On the front page these same uniforms are written every frame by one function that reads scroll progress, chapter index, pointer history and the DOM box of whichever portal the card is flying through. That function is the product. This page removes it and hands the six numbers to you instead, so the material can be inspected as an instrument panel rather than as a scene.

uMask [-1.00, 1.00, -1.00, 1.00]

Every knob writes one uniform of one material. Nothing in the image is animated by the page: it only changes when you move something, and the change costs exactly one frame — a knob is a command, so it is allowed to ask for a frame even while the idle law is holding the loop at zero. What does move on its own is the paper around it: the printed numbers settle, and the frame narrows to exactly the width the mask leaves, because one number draws both. The commanded value and the uniform value are printed side by side above; the verifier reads both and fails when they disagree.

HOW THIS PAGE IS BUILT

SAME SHADER, LITERALLYvertexShader, fragmentShader, buatUniformPanggung and the ¼-res blur copy are imported from the front page's material module. Nothing is re-implemented here, so a change to the shading reaches both routes at once.
ITS OWN HOLDERSThe main stage shares two module-level holders so the iris wipe and the car cross-fade close on the same frame across objects. This route replaces both entries with its own { value: 0 }. Driving the iris knob to 1 leaves the shared holders at 0, and the debug object carries those two numbers so a gate can say so.
ONE FRAME PER COMMANDA knob calls invalidate() when its value changes. That is the whole animation system here: the loop stays asleep, and the thing you asked for is painted once.
TWO NUMBERS, NOT ONE CLAIMThe DOM prints the commanded value; window.__meja prints what the material actually holds after the frame, plus the geometry's vertex count and the crop rectangle in NDC. They are compared by the verifier, not by the page's own prose.
FOCUS IS A DISTANCEThe focal-plane knob is in world units because uFokus is compared against the view-space depth of each pixel. The card sits five units from the camera, so 5.00 is sharp and 0.5 units away is fully soft — that ceiling is the same constant the chapter cards use.
WHAT IS NOT HERENo hover pulse, no pointer trail, no chapter tint, no scroll. uHover, uScroll and the twelve trail samples are left at their initial values, which is why the card does not breathe when nothing is asked of it.

WHAT THIS PAGE DOES NOT KEEP

Six numbers live in this tab and nowhere else. They are not sent to the server, not written to storage, and not carried to the next page: reload and every knob returns to its default, which is the state a visitor who never touched the panel is in. What the material holds after a frame is printed beside what you commanded, so a disagreement between the two is visible rather than assumed.