1 The idea
A real camera lets light from a bright background spill slightly over object edges, so razor-cut CG looks pasted on. Light wrap adds a blurred background onto the inner edge of the CG.
This graph builds the wrap from plain nodes: blur the plate → cut it with a blurred alpha (stencil) → keep the part inside the CG (mask) → plus a little of it. View the nodes one by one.
2 Hands-on in the mini compositor
Let a little background light bleed onto the CG edge
Where the numbers come from: Computed in your browser. Saturation, Multiply, Clamp, Invert, Keymix, Copy and Grade are checked against node-based compositing software. Blur, Defocus, Glow, Sharpen, ChromaticAberration, Vignette, LensDistort, Grain, Erode, Toe, the Keyer and Despill are teaching versions, not identical to Nuke’s nodes. Transform here is also a teaching version: bilinear filtering, no concatenation, cropped at the frame edge. Images are our own Blender renders (the green screen is fully code-built; the desert scene uses Gaea 2.3 hills, a Poly Haven CC0 HDRI sky, Poly Haven CC0 rocks and grass, Quixel sand and cliff textures and a Mixamo rig for the robot, with Quixel and Mixamo used in the renders only).