Sub topic 5
Using the World as a light source
This chapter assumes you can move around the viewport, open the Shader Editor, and have rendered a simple scene in Cycles or EEVEE. It also assumes you know from the previous chapter that a larger light source gives softer shadows. Here you will see how the World gives you the largest light source in the scene, and how to control it before any image is loaded into it.
What the World is
The World is a surface that surrounds the whole scene at infinite distance. Every ray that leaves your geometry and hits nothing continues until it reaches the World, and the World returns a color for that direction. The camera also sees that color wherever no object blocks the view.
Because the World covers every direction, it lights objects from the whole sky. This gives you:
- Very soft shadows, because the light source spans a full hemisphere or more.
- Light that arrives from many angles at once, so no single direction dominates unless the World contains a bright spot.
- Light that does not weaken with distance. You cannot move closer to it or farther from it.
A lamp is a single object that you place and aim. The World is a light you shape by changing the color it returns for each direction.
The default World
A new scene starts with a World that uses a Background node connected to a World Output node. Open the Shader Editor and switch its shader type from Object to World to see them. The Properties editor also has a World tab with the same settings under Surface.
The Background node has two inputs:
| Input | Meaning | Typical use |
|---|---|---|
| Color | The color returned for every direction | A flat tint, or a texture connected to it |
| Strength | A multiplier on that color | Raising or lowering the overall brightness |
With nothing connected to Color, the World is one uniform color. That is a valid and useful light. It is called ambient or fill light, and it brightens the shadow side of objects evenly. The default scene is lit by a dim gray World, which is why shadowed areas are not pure black.
A flat World as a soft light
A uniform World is the simplest way to see its effect. Set Color to white and Strength to 1.0, then render a sphere on a plane. The shadow under the sphere appears as a faint darkening instead of a sharp edge. This is called ambient occlusion in effect: the sphere blocks part of the sky from the plane, so the area under it receives less light.
Strength is a linear multiplier, so doubling it doubles the light. Color also contributes. A mid-gray (0.5, 0.5, 0.5) at Strength 2.0 gives the same lighting as white at Strength 1.0.
You can set up the same thing with Python:
import bpy
scene = bpy.context.scene
world = scene.world or bpy.data.worlds.new("World")
scene.world = world
world.use_nodes = True
bg = world.node_tree.nodes["Background"]
bg.inputs["Color"].default_value = (0.8, 0.85, 1.0, 1.0) # pale blue, RGBA
bg.inputs["Strength"].default_value = 0.6The Color input takes four values: red, green, blue and alpha. Passing three values raises an error.
A tinted World shifts the whole mood
Because the World reaches every surface, its color affects the whole image. A blue World with a warm lamp gives the familiar look of warm sunlight over a cool shadow. A World colored close to the lamp color makes the lamp's tint look natural but flattens the contrast between lit and shadowed sides.
Keep these points in mind when picking a color:
- Saturated colors in the World tint shadows strongly, so use low saturation unless you want a stylized result.
- A dark World gives deep shadows and makes lamps do most of the work.
- A bright World with no lamps gives a soft studio look often called overcast lighting.
Procedural skies
Blender can generate a sky without an image. The Sky Texture node, connected to the Color input of Background, computes a sky from a Sun Elevation, Sun Rotation, Altitude, and air, dust and ozone density values. In Cycles the sun appears as a very bright disk, so the sky produces both soft sky light and a sharp-shadowed sun in a single node.
A procedural sky has no file to manage, resolves any direction cleanly, and is easy to animate by changing the sun angle. It is less flexible than a photographed environment, which you will set up in the HDRI chapters that follow.
Seeing the World versus lighting with it
The World does two jobs at once: it is the background that the camera sees, and it is a light source. These can be separated.
- To hide the World from the camera but keep its light, enable Film > Transparent in the Render properties. The background becomes transparent in the saved image while objects remain lit by the World.
- In Cycles, the World settings include Ray Visibility. Turning off Camera hides the World from the camera only. Turning off Diffuse or Glossy removes its contribution to those kinds of surface response.
import bpy
scene = bpy.context.scene
scene.render.film_transparent = True # background becomes transparent, World light staysTransparent output only matters for formats that store alpha, such as PNG with RGBA selected. In JPEG the transparent area appears black.
How Cycles and EEVEE use the World
Both engines read the same World nodes, but they compute the lighting differently.
- Cycles traces rays and samples the World directly. Shadows from the World are physically correct, and a bright small area in the World, such as a sun, can add noise because it is hard to hit by chance. Cycles has a World setting for Sampling that builds a lookup map to find bright areas more efficiently. Later chapters cover this.
- EEVEE does not trace rays against the World for every pixel. It captures the World into a light probe and uses that for ambient lighting and reflections. The result is quick, but shadows from the World are approximate unless you enable the engine's ray tracing or shadow options for your Blender version.
Scenes lit mostly by the World usually look similar in both engines. The differences grow when the lighting depends on contact shadows, bright small sources, or light bouncing around a room.
Common errors
- Black scene after changing the World: Strength was set to 0, or the World has no node tree because Use Nodes was off. Turn Use Nodes on, or check the Strength value.
- Gray, flat image: a bright uniform World can overpower lamps. Lower Strength until the lamp shadows reappear.
- Wrong brightness when switching engines or color views: exposure and view transform affect how bright values look. The Exposure and color management chapter covers this.
- No World in the scene: a scene can have its World slot empty, which renders black with no ambient light. Create one in the World tab or use the script above.
Exercise
A scene has a gray World at Strength 1.0 and one lamp. You want the shadows to be about half as bright from the World while the lamp stays the same. What do you change, and what do you expect to see in the image?
Show answer
Set the Background node Strength to 0.5, or halve the Color values. The World light is a linear multiplier, so its contribution is halved. The lamp's own light is unchanged, so lit areas stay the same while shadowed areas become darker and the contrast between lit and shadowed sides increases.
Exercise
You render with a blue World and want a PNG of the object lit by that World, but with a see-through background. Which setting do you enable, and what happens to the light from the World?
Show answer
Enable Film > Transparent in the Render properties and save as PNG with RGBA. The World still lights the object, because only its appearance to the camera is hidden.