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...

02/05/2026

Dalet Flex LTS Delivers Smarter Search, Faster Editing, and an AI-Ready Foundation for Modern Media

Dalet, a leading technology and service provider for media-rich organizations, t...

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...

17/03/2026

FCC Announces TV Translator Call Sign Changes

Share Copy link Facebook X Linkedin Bluesky Email...

17/03/2026

2026 NAB Show Offering Free Show Floor Passes to Creators

Share Copy link Facebook X Linkedin Bluesky Email...

17/03/2026

QuickLink's Latest StudioEdge Models to Make North American Debut at NAB 202

QuickLink's Latest StudioEdge Models to Make North American Debut at NAB 202 Brie Clayton March 16, 2026 0 Comments The Multi-platform Remote Gues...

17/03/2026

Frankenstein Graded with DaVinci Resolve Studio

Frankenstein Graded with DaVinci Resolve Studio Brie Clayton March 16, 2026 0 Comments Sonnenfeld enhances the controlled interplay between warm and c...

17/03/2026

New Voyavox from Link Electronics with Real-Time Speech-to-Text Captioning to be Featured in NAB Booth #W2910

New Voyavox from Link Electronics with Real-Time Speech-to-Text Captioning to be...

17/03/2026

Berklee City Music Stewards META Fellowship Supporting Massachusetts Music Educators

Berklee City Music Stewards META Fellowship Supporting Massachusetts Music Educa...

16/03/2026

DAZN to Stream NCAA Men's and Women's Basketball Tourneys Free in Select International Markets

DAZN will allow fans in select international territories to watch the NCAA men&#...

16/03/2026

IDM and Skate Board Association Announce Arena and Training Complex Planned for Big Bear Lake

IDM and The Skate Board Association (SBA) have announced a partnership with Coop...

16/03/2026

NAB 2026: Solid State Logic Introduces ST 2110-to-Dante Converter

Solid State Logic (SSL) will debut the Net I/O ST 2110 Bridge at NAB 2026 (booth C6907), a standalone unit that converts between ST 2110 and Dante audio formats...

16/03/2026

NAB 2026: Marshall Electronics Launches First 4K All-IP Weatherproof NDI Camera

Marshall Electronics (Booth C8339) is introducing its first all-IP 4K POV camera, the CV574-WP, at NAB 2026. The camera carries an IP67 weatherproof rating for ...

16/03/2026

Sony Expands Camera Authenticity Solution to Support Video

Sony Electronics' Camera Verify (beta), a feature of its Camera Authenticity Solution which enables news organizations to share content authenticity informa...

16/03/2026

FloSports and Storied Sports Partner on Women's and College Sports Content

FloSports has announced a partnership with Storied Sports, a content and IP studio founded by former espnW and The Players' Tribune executives, to develop s...

16/03/2026

Montreux Jazz Festival Names Gravity Media as A/V Production Provider

Montreux Jazz Festival has announced a multi-year collaboration with Gravity Media, who will become the Festival's Audio Visual Production Provider followin...

16/03/2026

USSI Global Names Ralph Annunziata Senior Vice President of Operations

USSI Global, a provider of customized network, broadcast and digital signage systems and services, has announced Ralph Annunziata joined the company on Jan. 5 a...

16/03/2026

NAB 2026: Boland Communications to Show New OLED Displays and Video Wall Applications

Boland Communications (booth C3519) will exhibit at NAB Show 2026 in Las Vegas, ...

16/03/2026

ST 2110 On The Go? A Peek Inside BRISK, FOX Sports' Broadcast Remote IP Studio Kit

Built in partnership with Diversified, the system As the sports broadcast indus...

16/03/2026

Amagi Report: FAST Viewership Up 21%, AI Adoption Growing Across Media Operations

Global FAST (Free Ad-supported Streaming TV) viewership grew 21% year-over-year ...

16/03/2026

Behind The Mic: Netflix, NBC Tap Matt Vasgersian to Call MLB and Tony Dungy Is Out at NBC

Behind The Mic provides a roundup of recent news regarding on-air talent, includ...

16/03/2026

Cloudvocal launch the SonoFlex instrument mic

Promises studio-grade fidelity for the stage Cloudvocal have announced the launch of a new instrument mic designed for professional live performers and engi...

16/03/2026

Kenton reveal the USB Solo Mk2

Popular MIDI/CV converter & interface overhauled Kenton have announced the launch of the USB Solo Mk2, a new and improved version of their compact MIDI to C...

16/03/2026

Sonarworks Spring Sale

Running from 16-29 March 2026 Starting from today (16 March) and running until 29 March 2026, Sonarworks are offering discounts of up to 40% across their ra...

16/03/2026

L3Harris Carries Goddard's Legacy Into a New Era

Dr. Robert H. Goddard and a liquid oxygen-gasoline rocket in the frame from which it was fired on March 16, 1926, at Auburn, Massachusetts. Credit: NASA....

16/03/2026

L3Harris Military GPS Receiver Deliveries Surpass 100,000 Units

Precision-guided munitions shown in production illustrate one of many operational systems benefiting from modernized M-Code GPS, supporting assured positioning,...

16/03/2026

A+E Global Media Signs New Multiyear Deal With Nielsen Covering Audience Measurement and Media Intelligence

NEW YORK - March 16, 2026 - A E Global Media and Nielsen today announced a new,...

16/03/2026

aconnic ramping up delivery of commercial 100-gigabit system

aconnic AG (ISIN: DE000A0LBKW6), Munich, is delivering the first commercial 100-Gigabit systems following successful validation and certification for customer n...

16/03/2026

Spectrum Launches Multiview for March Madness

Share Copy link Facebook X Linkedin Bluesky Email...

16/03/2026

Ikegami To Spotlight Latest UNICAM 4K-UHD Cameras At 2026 NAB Show

Share Copy link Facebook X Linkedin Bluesky Email...

16/03/2026

A+E Global Media Signs New Agreement With Nielsen

Share Copy link Facebook X Linkedin Bluesky Email...

16/03/2026

Shotoku Brings Broadcast-Grade Control to PTZ with New Au...

Shotoku USA, Shotoku Broadcast Systems' North American operation, will unveil significant additions to its platform at NAB 2026. Topping the list is the wor...

16/03/2026

Ikegami to Showcase Latest Generation TV Production Camer...

Ikegami USA will demonstrate the latest additions to its wide range of broadcast-quality cameras, controllers and monitors on Central Hall booth C3819 during th...

16/03/2026

[Updated] Carr Threatens Broadcast Licenses Over Iran War Coverage

Share Copy link Facebook X Linkedin Bluesky Email...

16/03/2026

ELEMENTS launches GRID at NAB Show 2026

ELEMENTS launches GRID at NAB Show 2026 Brie Clayton March 15, 2026 0 Comments North Hall, Booth N1717 ELEMENTS returns to NAB Show 2026, with an exp...

16/03/2026

Blackmagic Design Cameras Capture Artist Salavat Fidai's Micro Sculptures

Blackmagic Design Cameras Capture Artist Salavat Fidai's Micro Sculptures Brie Clayton March 15, 2026 0 Comments 6K sensor and open gate capabilit...

16/03/2026

DHD to Introduce Latest Generation Broadcast Audio Mixers at NAB 2026, Las Vegas

DHD to Introduce Latest Generation Broadcast Audio Mixers at NAB 2026, Las Vegas Brie Clayton March 15, 2026 0 Comments Hero image: Front of DHD RM1 P...

16/03/2026

VEON Files its 2025 Annual Report on Form 20-F

16 Mar 2026 VEON Files its 2025 Annual Report on Form 20-F Dubai and New York, March 16, 2026 - VEON Ltd. (Nasdaq: VEON), a global digital operator ( VEON'...

16/03/2026

Sky Commissions The 100 Day Split, A New Relationship Series Exploring What Time Apart Reveals About Lifelong Love

Six Couples. 100 Days Apart. One Question: Does Absence Make the Heart Grow Fond...

16/03/2026

Tina Fey, Jamie Dornan and Riz Ahmed announced as first three hosts of Saturday Night Live UK

Monday 16 March 2026 Tina Fey, Jamie Dornan and Riz Ahmed announced as first th...

16/03/2026

Netflix Has Released the Trailer for 'Love at Last,' Starring Eda Ece and Kaan Yildirim

Back to All News Netflix Has Released the Trailer for Love at Last, Starring Ed...

16/03/2026

All UK national newspapers move to private circulation reporting while remaining audited by ABC

The reporting option was introduced following extensive consultation with publis...

16/03/2026

Rose of Tralee Katelyn Cummins wins Dancing with the Stars 2026

After a nail-biting Grand Finale, Rose of Tralee Katelyn Cummins has been announced as the winner of Dancing with the Stars 2026. The four finalists each dance...

16/03/2026

New RT series Welcome to Moore Street gives a glimpse into life on iconic Dublin street

Welcome to Moore Street will begin on RT One and RT Player on Thursday 19 Marc...

15/03/2026

Visit ToolsOnAir at NAB Las Vegas 2026

Visit ToolsOnAir at NAB Las Vegas 2026 More Details:From April 19-22, join us at NAB Show Las Vegas in the North Hall, Booth N1258, for an exclusive preview of...

15/03/2026

Outland III from The Very Loud Indeed Co.

Latest dark drama, thrillers & tension library announced The Very Loud Indeed Co.'s latest Kontakt library has just arrived, delivering a third instalme...

15/03/2026

19TH ANNUAL SOUTH AFRICAN FILM AND TELEVISION AWARDS (SAFTAs) CELEBRATED THE BEST OF THE SOUTH AFRICAN FILM AND TELEVISION INDUSTRY

Johannesburg, 14 March 2026 - On 13 and 14 March 2026, the 19th Annual South Afr...