
Imagine hiking to a lake on a summer day - sitting under a shady tree and watching the water gleam under the sun.
In this scene, the differences between light and shadow are examples of direct and indirect lighting.
The sun shines onto the lake and the trees, making the water look like it's shimmering and the leaves appear bright green. That's direct lighting. And though the trees cast shadows, sunlight still bounces off the ground and other trees, casting light on the shady area around you. That's indirect lighting.
For computer graphics to immerse viewers in photorealistic environments, it's important to accurately simulate the behavior of light to achieve the proper balance of direct and indirect lighting.
What Is Direct and Indirect Lighting? Light shining onto an object is called direct lighting.
It determines the color and quantity of light that reaches a surface from a light source, but ignores all light that may arrive at the surface from any other sources, such as after reflection or refraction. Direct lighting also determines the amount of the light that's absorbed and reflected by the surface itself.
Direct lighting from the sun and sky. Light bouncing off a surface, illuminating other objects is called indirect lighting. It arrives at surfaces from everything except light sources. In other words, indirect lighting determines the color and quantity of all other light that arrives at a surface. Most commonly, indirect light is reflected from one surface onto other surfaces.
Indirect lighting generally tends to be more difficult and expensive to compute than direct lighting. This is because there is a substantially larger number of paths that light can take between the light emitter and the observer.
Direct and indirect lighting in the same setting. What Is Global Illumination? Global illumination is the process of computing the color and quantity of all light both direct and indirect that is on visible surfaces in a scene.
Accurately simulating all types of indirect light is extremely difficult, especially if the scene includes complex materials such as glass, water and shiny metals - or if the scene has scattering in clouds, smoke, fog or other elements known as volumetric media.
As a result, real-time graphics solutions for global illumination are typically limited to computing a subset of the indirect light - commonly for surfaces with diffuse (aka matte) materials.
How Are Direct and Indirect Lighting Computed? Many algorithms can be used for computing direct lighting, all of which have strengths and weaknesses. For example, if the scene has a single light and no shadows, direct illumination is trivial to compute, but it won't look very realistic. On the other hand, when a scene has multiple light sources, processing them all for each surface can become expensive.
To tackle these issues, optimized algorithms and shading techniques were developed, such as deferred or clustered shading. These algorithms reduce the number of surface and light interactions to be computed.
Shadows can be added through a number of techniques, including shadow maps, stencil shadow volumes and ray tracing.
Shadow mapping has two steps. First, the scene is rendered from the light's point of view into a special texture called the shadow map. Then, the shadow map is used to test whether surfaces visible on the screen are also visible from the light's point of view. Shadow maps come with many limitations and artifacts, and quickly become expensive as the number of lights in the scene increases.
Stencil shadows in Doom 3' (2004). Image source: Wikipedia. Stencil shadow volumes are based on extruding scene geometry away from the light, and rendering that extruded geometry into the stencil buffer. The contents of the stencil buffer are then used to determine if a given surface on the screen is in shadow or not. Stencil shadows are always sharp, unnaturally so, but they don't suffer from common shadow map problems.
Until the introduction of NVIDIA RTX technology, ray tracing was too costly to use when computing shadows. Ray tracing is a method of rendering in graphics that simulates the physical behavior of light. Tracing the rays from a surface on the screen to a light allows for the computation of shadows, but this can be challenging if the light comes from one point. And ray-traced shadows can quickly get expensive if there are many lights in the scene.
More efficient sampling methods were developed to reduce the number of rays required to compute soft shadows from multiple lights. One example is an algorithm called ReSTIR, which calculates direct lighting from millions of lights and shadows with ray tracing at interactive frame rates.
Direct illumination and ray-traced shadows created with ReSTIR, compared to a previous algorithm. What Is Path Tracing? For indirect lighting and global illumination, even more methods exist. The most straightforward is called path tracing, where random light paths are simulated for each visible surface. Some of these paths reach lights and contribute to the finished scene, while others do not.
Path tracing is the most accurate method capable of producing results that fully represent lighting in a scene, matching the accuracy of mathematical models for materials and lights. Path tracing can be very expensive to compute, but it's considered the holy grail of real-time graphics.
Comparison of path tracing with a less complete ray-tracing algorithm and rasterization. How Does Direct and Indirect Lighting Affect Graphics? Light map applied to a scene. Image courtesy of Reddit. Direct lighting provides the basic appearance of realism, and indirect lighting makes scenes look richer and more natural.
One way indirect lighting has been used in many video games is through omnipresent ambient light. This type o
Most recent headlines
05/01/2027
Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
04/07/2026
April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
28/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/05/2026
Green Hippo, an ACT Entertainment brand, will pull back the curtain on the Estuary Series, a next-generation media control platform engineered for the scale, sp...
28/05/2026
First Hands-On Opportunity at Universal Studios Lot, June 5-6
Oberkochen, Germany, May 27, 2026 ZEISS is launching their new Panoptes 65 primes at Cine Gear ...
28/05/2026
Irvine, CA May 20, 2026 Wooden Camera today announced the release of new accessories for the Blackmagic URSA Cine Immersive. The new lineup includes a redes...
28/05/2026
Six films, one unmissable collection. First Facts documentaries debut on 10 Stre...
28/05/2026
Emma Watkins brings all-new Emma's Dance Club to ABC Kids 28 May 2026
Emmas Dance Club. Image credit: Sarah Wilson.
The ABC, Screen Australia and Screen N...
28/05/2026
Cool Concentric Text for Cavalry
Simon Ubsdell May 27, 2026
0 Comments
In this tutorial I'll show you how to make this popular text effect that is...
28/05/2026
Scripps Research's Skaggs Graduate School awards doctoral degrees to 34th graduating class
May 21, 2026
Scripps Research's Skaggs Graduate School of ...
28/05/2026
Scripps Research chemist Jin-Quan Yu is named a Fellow of the Royal Society Yu is honored by the U.K.'s national academy of sciences for his work in synthet...
27/05/2026
Telestream has announced that its Board of Directors has appointed Benjamin Desbois as Chief Executive Officer, effective July 1, 2026. Desbois, currently Teles...
27/05/2026
ESPN garnered 10 awards; NBC's Sunday Night Football received the Outstandin...
27/05/2026
Matrox Video is celebrating its 50th anniversary, marking five decades of operations from its headquarters in Montreal, Canada. Founded in 1976, the company has...
27/05/2026
Major League Baseball has announced a series of initiatives tied to America's Semiquincentennial, including a national marketing campaign, Fourth of July br...
27/05/2026
Advanced Systems Group (ASG) has announced that Brian Gross has joined the company as an Account Manager on its Audio team, based in the Burbank office. He will...
27/05/2026
Nielsen has released new research on soccer fandom ahead of the FIFA World Cup 2...
27/05/2026
ESL FACEIT Group (EFG) has unveiled a new partnership with TikTok to bring broad...
27/05/2026
FIFA's Oscar Sanchez gives a deeper look to how this tournament will be cove...
27/05/2026
The soon-to-be senior from Charlottesville is building her skills in replay, TD, and even creative content for HokieVision and its ACC Network productions
In t...
27/05/2026
FOX Sports' Mike Davies breaks down the vision for this summer's showcas...
27/05/2026
HBS's Paul King, FIFA's Oscar Sanchez preview how the masses at home wil...
27/05/2026
FOX's MLB coverage dominated the night at the 47th Annual Sports Emmy Awards...
27/05/2026
One of the most memorable Postseasons in baseball history would have had no memo...
27/05/2026
NBC's Sunday Night Football is among the most decorated and most watched programs in the history of television. It added to its jam-packed trophy case on Tu...
27/05/2026
The 2026 Sports Emmys marked a watershed moment for Prime Video Sports. After bu...
27/05/2026
With the Opening Match just over two weeks away, the entire sports-production-te...
27/05/2026
Spotify already brings together listeners' favorite music, podcasts, and audiobooks in one place. Now, we're trialing a new format that expands the cont...
27/05/2026
The best podcast moments deserve more than just a mental note. That's why today, we're making those moments easier to save and share with clips.
Whethe...
27/05/2026
On Purpose is one of the most popular podcasts in the world, known for conversat...
27/05/2026
On May 8, 1,500 of Olivia Rodrigo's top fans gathered in Barcelona's Tea...
27/05/2026
Hybrid design combines large-diaphragm capsule & ribbon
JZ Microphones have teamed up with Grammy-winning producer and engineer Marc Urselli to develop a ne...
27/05/2026
Three new plug-ins inspired by classic tape effects
AIR Music Tech's latest release delivers a set of plug-ins that aim to capture the character, moveme...
27/05/2026
Piano played on the edge of silence
The Crow Hill Company's Vaults collection offers a continual rotation of instruments that are given away for free fo...
27/05/2026
Recreates Moog's iconic Memorymoog polysynth
Arturia's vast software instrument range offers a combination of new and old, with innovative modern so...
27/05/2026
Offers loudness levelling for speech and dialogue
Accentize have built up a solid reputation with their audio-restoration tools, and their latest plug-in is...
27/05/2026
10,000 units strong - The Rohde & Schwarz R&S M3SR Radio 4400 Rohde & Schwarz celebrates a major manufacturing milestone, producing its 10,000th R&S M3SR Radi...
27/05/2026
The XL Converge 300P radio system emerges with a groundbreaking feature set enhancing the mission-critical communications of public safety, federal and critica...
27/05/2026
Pairing Two47 MCX software with existing LTE networks means tailored system upgrades that can save time, money and lives....
27/05/2026
PAC-3 MSE offers improved range, speed, and maneuverability, making it an effect...
27/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/05/2026
Star Trek VFX: Recreating John Knoll's Iconic Warp Stars without a Slitscan ...
27/05/2026
Adventure World Uses Blackmagic Replay for Marine Live
Brie Clayton May 27, 2026
0 Comments
Large screen displays and slow motion replays dynamically ...
27/05/2026
Berklee Alumna and Assistant Professor Olivia P rez-Collellmir to Premiere Origi...