
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 ...
09/10/2026
September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026
New Sports Intelligence helps providers better unders...
07/10/2026
Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...
18/09/2026
DHD reports a high level of interest in its range of audio production equipment on all four days of the September 11-14 International Broadcasting Convention in...
18/09/2026
Sonnet Announces Thunderbolt 5 eGPU With 850-Watt Power Supply and Integrated Do...
18/09/2026
DeckBridge adds live Resolve playback and Fairlight controls to Stream Deck
Brie Clayton September 17, 2026
0 Comments
DeckBridge starting profiles ac...
18/09/2026
Learn to arrange tracks using Color With Live's Free Stencil Pack
Brie Clayton September 17, 2026
0 Comments
Stencils are Color With Live's or...
18/09/2026
Berklee Establishes Susan Tedeschi Scholarship in Honor of Grammy-Winning Alumna The scholarship is announced as Tedeschi returns to headline the Berklee Bloc...
18/09/2026
The inside scoop on attention-grabbing market assets from those in the know 17 September 2026
(L-R): Sophie Green, Todd Brown and Edwina Waddy
Find this episo...
17/09/2026
Lions vs. Bills will also be the first regular-season game at new Highmark Stadi...
17/09/2026
Teradek has announced Bolt 7, a wireless video and data system that adds an integrated 900MHz radio to the Bolt's zero-delay video pipeline. The 900MHz chan...
17/09/2026
DAZN has announced three appointments to its executive leadership team, all reporting to CEO Shay Segev effective immediately.
Patrick Delany has been appointe...
17/09/2026
Monumental Sports and Entertainment (MSE) has announced a leadership restructuring. Zach Leonsis has been named President and Vice Chairman, a newly created pos...
17/09/2026
CP Communications has been named Best of Florida for Audio-Visual Services, and its subsidiary Red House Streaming has been named Best Movie and Recording Studi...
17/09/2026
Scripps Sports and ION have announced a broadcast partnership for the Shriners Children's East-West Bowl, the nation's oldest college all-star football ...
17/09/2026
The 17th annual espnW: Women + Sports Summit, presented by Toyota, will take place October 14-16 at the Ojai Valley Inn in Ojai, California, with virtual attend...
17/09/2026
The Professional Audio Manufacturers Alliance (PAMA) and Shure Incorporated have...
17/09/2026
Lithuanian broadcaster LNK Group has completed a migration of playout and media management for its five national television networks - LNK, BTV, TV1, InfoTV, an...
17/09/2026
Net Insight has announced a pan-Asian live media network created with its regional partners, giving broadcasters, production companies, and media service provid...
17/09/2026
After a high school football injury, the Orlando native found a new path in video production, gaining experience on ESPN college football broadcasts, Tampa Bay ...
17/09/2026
Popular DAW gains free pitch-correction tool
Image-Line have teamed up with Antares to kit their popular DAW software out with a built-in pitch-correction p...
17/09/2026
Promises unprecedented realism, dynamic nuance and clarity
Gibson have teamed up with acoustic pickup experts Baggs, creating a next-generation' pickup...
17/09/2026
Two new libraries join percussion line-up
VSL (Vienna Symphonic Library) have just launched two new libraries that bring some intriguing new instruments int...
17/09/2026
Hardware & plug-in versions gain new features
Arturia have just released a free update that brings some significant new features to their MiniFreak synthesi...
17/09/2026
Respected journalist Catalina Fl rez to succeed Anton Enus as SBS World News pre...
17/09/2026
The Department of Sport, Arts and Culture (DSAC), in partnership with the Nation...
17/09/2026
Calrec brings leading audio solutions and long-term business value to IBC 2026 We're looking forward to meeting up with you all on 11-14th September in Amst...
17/09/2026
Streaming Content Ratings (SCR) Data Shifts to Daily Delivery Cadence, Mirroring...
17/09/2026
August brought further stabilization in total TV viewing time. Poles spent an average of 3 hours and 31 minutes a day watching video content on TV glass-just 2 ...
17/09/2026
Post-sports seasonal shift redistributes viewership across Poland, while streami...
17/09/2026
Television Content Analytics Pte Ltd (TVC), a Singapore-based deep-tech company specialising in sports technology, artificial intelligence and live broadcast in...
17/09/2026
Rise WIB, the global advocacy group championing gender diversity and career progression across the media technology industry, today announced the shortlist for ...
17/09/2026
RALEIGH, N.C. - Capitol Broadcasting Company (CBC) and Hurricanes Holdings annou...
17/09/2026
Lithuanian broadcaster deploys Playout X and Framelight X across five networks, combining on-premises software-defined playout with cloud-based disaster recover...
17/09/2026
Introducing Adobe Photoshop Elements & Premiere Elements 2027
Brie Clayton September 17, 2026
0 Comments
New tools make it easier than ever to enhance y...
17/09/2026
LA JOLLA, CA-While the brain orchestrates metabolic processes in the body, it al...
17/09/2026
New series of Aistear an Amhr in shares extraordinary stories behind Ireland'...
17/09/2026
The Late Late Show is back!
Liam Neeson, Siobh n McSweeney, Caitr ona Balfe a...
17/09/2026
The Neighbours Effect: Gen Z Brings Back Big Hair, Double Denim and 80s soap sty...
17/09/2026
The bold, new legal drama starring Dominic West and Sienna Miller launches on Sky and NOW on 2nd OctThursday 17 September 2026
Official trailer released for Sk...
17/09/2026
Every week we read headlines about new threats from AI. From taking over jobs to disrupting critical infrastructure, spreading misinformation or even destroying...
17/09/2026
Arqiva selected by SANZAAR to deliver global distribution of 2026 international ...
17/09/2026
CULVER CITY, CALIFORNIA This evening at the 78th Primetime Emmy Awards, Apple TV...
17/09/2026
A new creature-catching adventure is ready to stream from the cloud this week. Pawprint Studio's Aniimo arrives on GeForce NOW at launch, inviting gamers to...
17/09/2026
RT Statement:
RT is today confirming that its position regarding participation in the Eurovision Song Contest remains unchanged. RT will not participate in...
16/09/2026
Grass Valley has been recognized with a 2026 Technology & Engineering Emmy Award...
16/09/2026
Sports-media leaders explore how cloud, AI, and virtualization are transforming ...
16/09/2026
With a full crew on site in Springfield, deep access to players, and a growing d...
16/09/2026
John Wilson attends The History of Concrete premiere during the 2026 Sundance Film Festival at The Yarrow Theatre on January 22, 2026, in Park City, Utah. (Ph...
16/09/2026
Powerful soft synth receives free update
Wavea have just launched a new and improved version of their feature-packed soft synth, kitting it out with over 20...