Sony Pixel Power calrec Sony

What Is Direct and Indirect Lighting?

04/08/2022

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
LINK: https://blogs.nvidia.com/blog/2022/08/04/direct-indirect-lighting/...
See more stories from nvidia

Most recent headlines

05/01/2027

Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be demoed at CES 2026

Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...

01/06/2026

Dolby Sets the New Standard for Premium Entertainment at CES 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...

01/05/2026

NBCUniversal's Peacock to Be First Streamer to Integrate Dolby's Full Suite of Premium Picture and Sound Innovations

January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...

01/04/2026

DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION

January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION Douyin Users Can Now Create And Share Videos With Stun...

06/01/2026

Peacock Bringing Dolby Vision and Dolby Atmos to Live Sports Content

Peacock Bringing Dolby Vision and Dolby Atmos to Live Sports ContentPeacock is the first streamer to embrace Dolbys full suite of advanced picture/sound innovat...

06/01/2026

Milano Cortina 2026: Listening to the Sounds of Powder and Ice With a Behind the Scenes Tour of OBS and NBC's Audio Set Ups

SVG Europe Audio: Listening to the sounds of powder and ice at Milano Cortina wi...

06/01/2026

Quintar Meta Spatial SDK Integration Promises Next-Level XR Experiences

Quintar Meta Spatial SDK Integration Promises Next-Level XR ExperiencesBy Ken Kerschbaumer, Editorial Director Tuesday, January 6, 2026 - 9:41 am Print This...

06/01/2026

Milano Cortina 2026: BBC Sport Previews Broadcast Ops, Studio Setup, Social Media Plans, and More

Milano Cortina 2026: BBC Sport Previews Broadcast Ops, Studio Setup, Social Medi...

06/01/2026

Dolby's Jason Power on Elevating Live Sports Through Immersive Audio and HDR Imagery

Dolby's Jason Power on Elevating Live Sports Through Immersive Audio and HDR...

06/01/2026

DAZN's Global CRO Walker Jacobs on the Streamer's Breakout Year in the U.S.

DAZN's Global CRO Walker Jacobs on the Streamer's Breakout Year in the U...

06/01/2026

California Dreamin': LA28's SVP of Media Jim Bell Previews the Olympic and Paralympic Games' Return to the U.S.

California Dreamin': LA28's SVP of Media Jim Bell Previews the Olympic a...

06/01/2026

One Month Out From Winter Olympics Opening Ceremony, NBC Sports in Final Prep for a Legendary February'

One Month Out From Winter Olympics Opening Ceremony, NBC Sports in Final Prep fo...

06/01/2026

Advanced HDR by Technicolor and Zinwell Integrated onto ATSC 3.0 Conversion Boxes

Advanced HDR by Technicolor and Zinwell Integrated onto ATSC 3.0 Conversion Boxe...

06/01/2026

Fox Sports President and COO Mark Silverman Shifts to Consulting Role

Fox Sports President and COO Mark Silverman Shifts to Consulting RoleBy Ken Kerschbaumer, Editorial Director Tuesday, January 6, 2026 - 2:37 pm Print This S...

06/01/2026

Spotify Celebrates Podcasting's Big Moment Ahead of First-Ever Golden Globes Category

Spotify is launching a week-long celebration spotlighting creators at the center...

06/01/2026

Spotify's New Gov Ball Experience Turns the 2026 Lineup Into a Personalized Data Story for Every Fan

Lorde. A$AP Rocky. JENNIE. Baby Keem. KATSEYE. That's just a taste of who...

06/01/2026

L3Harris CFO and Missile Solutions President Appears on CNBC

In a live broadcast, L3Harris CFO and Missile Solutions President Ken Bedingfield joined Morgan Brennan on CNBCs Closing Bell: Overtime. Bedingfield discussed...

06/01/2026

Index Exchange Launches Gracenote-Powered Show-Level Reporting with Spectrum Reach

First-of-its-kind SSP capability delivers program-level insight and brand suitab...

06/01/2026

iWedia, Skyworth Partner on Turnkey Solutions for NextGen TV

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Hub: Younger Viewers More Receptive to Ads on Streaming Services

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Zixi Hires Heather Mellish as Vice President, Global Sales

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Scripps Names Amira Lewally as Senior Director, Original Programming

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Carr Appoints New FCC Chief Economist

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

iWedia Highlights NextGen TV Software Stack at CES

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Boston Conservatory at Berklee Kicks Off Spring Center Stage Season in February

Boston Conservatory at Berklee Kicks Off Spring Center Stage Season in February Boston Conservatory at Berklee's Center Stage season continues this spring...

06/01/2026

Operative Announces the New AOS Services Platform Foundat...

Operative, the preferred advertising management solution provider for the world's leading media brands, today announced a new AOS Services Platform, advanci...

06/01/2026

Beam Dynamics Expands Leadership to Drive Product and Ent...

Beam Dynamics has strengthened its leadership team with two appointments to support the company's next stage of growth. Jonathan Rollman will lead product s...

06/01/2026

MNC Software strengthens global sales team with appointme...

MNC Software, a global leader in network management and operational support systems tailored to the broadcast and media industry, has today announced the appoin...

06/01/2026

JAS teams with Friend MTS to protect Premier League

Friend MTS, the number one anti-piracy provider and video cybersecurity partner in entertainment, media and sports, today announced a partnership with Jasmine I...

06/01/2026

Kiloview New Innovations at ISE 2026 - Advancing Its Inte...

Kiloview, a global leader in AV-over-IP solutions, will showcase its latest innovations at ISE 2026, highlighting the continued evolution of its complete, light...

06/01/2026

Opponents Urge FCC to Reject Nexstar-Tegna Takeover

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

DirecTV Launches Streaming Solution for Small Businesses

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Public Broadcasters Deploy Advanced HDR by Technicolor

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Comcast's Versant Spinoff Goes Public

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Board Votes to Dissolve Corporation for Public Broadcasting

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

06/01/2026

Channel 4 and UKTV Deliver Unmissable Entertainment and More Choice for Viewers

Channel 4 and UKTV are giving viewers even more reasons to stream, with UKTV's U service set to feature thousands of hours of free, unmissable and bingeable...

06/01/2026

An update on our Sky Mobile prices

Tuesday 6 January 2026 An update on our Sky Mobile prices Devesh Raj, Chief Operating Officer, Sky Today, we've announced some changes to the prices of ...

06/01/2026

The Wait is Finally Over... 'Museum of Innocence' Premiering on Netflix February 13th

Back to All News The Wait is Finally Over... Museum of Innocence Premiering on ...

06/01/2026

Comscore Launches Daily Program-Level Reporting with Deduplicated Insights on Shows and Episodes across CTV and Linear TV

Comscore Launches Daily Program-Level Reporting with Deduplicated Insights on Sh...

06/01/2026

Comscore Completes Recapitalization Transaction with Preferred Stockholders Following Approval from Common Stockholders

Comscore Completes Recapitalization Transaction with Preferred Stockholders Foll...

05/01/2026

NFL's Blake Jones on How the League's Latest Video Additions Change How Viewers Watch Football

NFL's Blake Jones on How the League's Latest Video Additions Change How ...

05/01/2026

Spiideo's Scott Bushman on How AI Is Already Powering Live Sports Production

Spiideo's Scott Bushman on How AI Is Already Powering Live Sports ProductionFrom a line of camera systems to its automated production platform, the tech ven...

05/01/2026

Celebrate Bad Bunny's DeB TiRAR MS FOToS' Anniversary With Playlist Cover Art Stickers and More

Bad Bunny's DeB TiRAR M S FOToS defined the sound of 2025 for listeners eve...

05/01/2026

L3Harris to Sell Majority Stake in Space Propulsion & Power Business to AE Industrial Partners

MELBOURNE, Fla., Jan. 5, 2026 - L3Harris Technologies (NYSE: LHX) today announce...

05/01/2026

L3Harris Announces Reorganization of Its Businesses

MELBOURNE, Fla., Jan. 5, 2026 - Effective today, L3Harris Technologies (NYSE: LHX) has reorganized its business structure from four to three business segments, ...

05/01/2026

Qvest Names Thorsten Sauer as CEO

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

05/01/2026

iWedia and Skyworth Announce Strategic Partnership to Del...

iWedia, a global leader in software solutions for connected TV devices, and Skyworth, one of the world's largest manufacturers of smart TVs and home enterta...

05/01/2026

How Active Is Your Archive?

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

05/01/2026

CTV: Everything, Everywhere All at Once

Share Share by: Copy link Facebook X Whatsapp Pinterest Flipboard...

05/01/2026

RT waltzes into 2026 and entertains the nation as Dancing With The Stars and Room To Improve are huge hit

As the clock struck midnight and 2026 was born, so was an exciting range of new ...