Sub topic 14
Light linking in Cycles
Light linking lets you decide which objects a given light affects. A rim light can touch only the character. A fill light can skip the floor. A lamp can light a prop without casting a shadow from a wall. This chapter covers how light linking works, how to set it up, and where it stops working.
You should already know how to place lamps, use emissive materials as lights, and render with Cycles. You should also be able to read a collection hierarchy in the Outliner. Light linking exists in Blender 4.0 and later. If your version is older, the panels below won't appear.
What light linking does
Normally every light in a scene illuminates every object that can see it. That is physically correct, but it is not always what a shot needs. Photographers and film crews use flags, cutters and gobos to keep a light off part of the set. Light linking is the digital version of that.
Each light object has two independent settings:
- Receiver collection. This controls which objects the light shines on.
- Blocker collection. This controls which objects cast shadows from this light.
Both settings belong to the light, not to the objects. To change what a light affects, select the light.
Receiver linking
Select a light, then open Object Properties > Shading > Light Linking. Under Receiver Collection, click New Collection or pick an existing one. Then add objects to that collection. Each entry in the list has one of two states:
- Include. The light affects only the objects marked Include. Everything else is skipped.
- Exclude. The light affects everything except the objects marked Exclude.
Use Include when the light has one job, such as a rim light for the subject. Use Exclude when the light is general-purpose but must avoid one object, such as a bright ground plane that would wash out.
Adding or removing an object only changes the light's list. The object keeps its material and its other lights.
A few facts about how the setting is stored:
- If a light has no receiver collection, it lights everything, as usual.
- The same collection can be assigned to several lights.
- The collection does not need to be linked to the scene. Blender keeps it alive because the light references it.
- Moving an object between scene collections does not change its link state. The receiver collection is separate.
Blocker (shadow) linking
Shadow linking sits in the same panel, under Shadow Linking. Its Blocker Collection names the objects that can cast shadows from this light.
The default state matters here. With no blocker collection, every object casts shadows from every light. With a blocker collection set to Exclude for an object, that object stays lit by the light but casts no shadow in its path.
Common uses:
- A wall or flag that sits between a light and the subject only to shape other lights. It stops blocking this one.
- A ceiling in an interior scene. You place a sun-like area light above it and exclude the ceiling from blocking.
- A prop that must receive the light but must not shadow the character behind it.
Receiver and blocker settings are independent. An object can be excluded from receiving but still cast a shadow, or the reverse.
Setting it up with Python
The same properties are available through bpy. This script creates a receiver collection containing the subject, and assigns it to a light named Rim. It also creates a blocker collection with one object that should cast shadows from this light.
import bpy
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
rim = bpy.data.objects["Rim"]
subject = bpy.data.objects["Subject"]
wall = bpy.data.objects["Wall"]
# Objects this light shines on
receivers = bpy.data.collections.new("Rim receivers")
receivers.objects.link(subject)
rim.light_linking.receiver_collection = receivers
# Objects that cast shadows from this light
blockers = bpy.data.collections.new("Rim blockers")
blockers.objects.link(wall)
rim.light_linking.blocker_collection = blockersThe script creates collections that are not linked to the scene, which matches what the UI does. After running it, open the light's Light Linking panel and check that each object shows the state you want, Include or Exclude. Then render a test frame. A short test render catches a wrong state faster than reading the properties.
What light linking does not do
Light linking has limits that cause most confusion.
It only affects direct light
A receiver setting removes the light's direct contribution to an object. Indirect light still arrives. Suppose a red light is excluded from a white floor. The light still hits the walls, and the walls bounce red light onto the floor. The floor is not fully free of that light's color. To remove indirect light, you must exclude the intermediate objects too, or use a different technique.
It does not control the World
The World lights the scene from the HDRI or sky and has no object to link. You cannot exclude one object from it. If a subject needs different environment light, use a separate scene or view layer, or hide the effect with a lamp-only setup for that object.
It does not restrict the EEVEE or Workbench engines in the same way
This chapter covers Cycles. Support in EEVEE depends on the Blender version, so check the release notes for your version before relying on it.
Light linking and Cycles features that bake in assumptions
Light linking is applied at render time. Baked lighting, and passes that you composite later, use whatever the render saw. If you change linking after a bake, rebake.
Light linking, light groups and other tools
Several features seem similar. They solve different problems.
| Tool | What it controls | Where the change happens |
|---|---|---|
| Light linking (receivers) | Which objects a light affects | At render time, in the image |
| Shadow linking (blockers) | Which objects cast shadows for a light | At render time, in the image |
| Light groups | Which lights go to which render pass | In passes, for compositing |
| View layers | Which objects exist in a render | Per layer, composited later |
| Ray visibility settings | Whether an object is seen by camera, diffuse, glossy rays | Per object, for all lights |
Light linking changes the final image directly. Light groups leave the image unchanged and give you separate passes to adjust in the compositor. If you want to change the balance of a light after rendering, use light groups. If you want a physical exclusion that would be hard to fake, use light linking. You can combine both.
A worked setup: rim light for a character
Suppose a character stands in front of a bright wall. You want a rim light that shapes the outline of the character without lighting the wall.
- Create an area light behind and to the side of the character, and name it
Rim. - Select
Rim. In Object Properties > Shading > Light Linking, create a new receiver collection. - Drag the character into the collection and set the entry to Include.
- Render in Cycles. The rim light now brightens only the character.
- If the character still casts a long, distracting shadow from
Rimonto the floor, create a blocker collection, add the character, and set it to Exclude.
Check the result with the viewport in Rendered shading. The effect is visible there, so you can adjust the light's position and power without rendering a full frame.
Common problems
- The light still affects excluded objects. Indirect light is the usual cause. Look for nearby bright surfaces, and exclude them or lower the light's power.
- A light affects nothing. An Include list with no valid objects means no receivers. Check that the collection holds the right objects and that each entry is set to Include.
- No option appears in the panel. Check that the engine is Cycles and that the object is a light or an emissive mesh. Also check the Blender version.
- Shadows look wrong after exclusion. Light linking changes the shadow of one light only. The remaining lights still cast shadows from the same object.
- The HDRI still lights an excluded object. The World cannot be linked. This is expected.
Exercise
A white floor is excluded from receiving a red area light, yet it still looks slightly red in the render. Give the most likely cause and one way to fix it.
Show answer
The cause is indirect light. The red light hits nearby walls or objects, which bounce red light onto the floor. Light linking removes only the direct contribution. To fix it, exclude the nearby bouncing objects from the light as well, reduce the light's power, or use a separate render pass with light groups and adjust it in the compositor.
Exercise
You want a lamp to light a character and the character's shadow to be absent on a wall behind them, while other lamps still cast the normal shadow. Which settings do you change, and on which object?
Show answer
Select the lamp, not the character. Under Light Linking, add the character to the receiver collection with Include so the lamp lights only the character. Then, under Shadow Linking, add the character to the blocker collection with Exclude so the character does not cast a shadow from that lamp. Other lamps are unchanged, so they still cast the normal shadow.