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

28/02/2026

FOX Sports Waves Green Flag on 2026 IndyCar Season With Driver's Eye, Heads Up Display, Live Drones

With two features seen in Formula 1 coverage, the broadcaster aims to bring view...

28/02/2026

Secretary of War Pete Hegseth Visits L3Harris Solid Rocket Motor Site

Secretary of War Pete Hegseth addresses a crowd of approximately 1,500 L3Harris employees in Camden, Arkansas, as part of his Arsenal of Freedom tour....

28/02/2026

2026 NAB Show Expands Sports Summit to Four Days

Share Copy link Facebook X Linkedin Bluesky Email...

28/02/2026

Three TV5Monde FAST Channels Launch on Plex

Share Copy link Facebook X Linkedin Bluesky Email...

28/02/2026

Nielsen Introduces 200+ New Advanced Audience Segments

Share Copy link Facebook X Linkedin Bluesky Email...

28/02/2026

SBE Launches Annual Membership Drive

Share Copy link Facebook X Linkedin Bluesky Email...

28/02/2026

Gray's Fox 12 Inks Deal for Portland Fire And Portland Thorns Games

Share Copy link Facebook X Linkedin Bluesky Email...

28/02/2026

Berklee Presents Mambo Mania: Eguie Castrillo and the Berklee All-Stars Big Band's Tribute to Eddie Palmieri

Berklee Presents Mambo Mania: Eguie Castrillo and the Berklee All-Stars Big Band...

28/02/2026

Berklee Announces Two New Summer Programs in Los Angeles

Berklee Announces Two New Summer Programs in Los Angeles The Berklee Music Business Program and Electronic Music Production and Sound Design Workshop bring imme...

28/02/2026

NVIDIA and Partners Show That Software-Defined AI-RAN Is the Next Wireless Generation

AI-RAN is moving from lab to field, showing that a software-defined approach is ...

28/02/2026

NVIDIA Advances Autonomous Networks With Agentic AI Blueprints and Telco Reasoning Models

Autonomous networks - intelligent, self-managing telecommunications operations -...

28/02/2026

Final Trailer for BEASTARS Final Season Part 2' Roars Toward the Series' Emotional Conclusion

Back to All News Final Trailer for BEASTARS Final Season Part 2' Roars Tow...

28/02/2026

February 27, 2026

New way to intentionally discover molecular glues could expand drug discovery Scripps Research scientists and colleagues show how drugs that eliminate certain d...

27/02/2026

Scripps Appoints Oliver Gray as Vice President, Network Sports and Client Partnerships

The E.W. Scripps Company names Oliver Gray as Vice President, Network Sports and...

27/02/2026

Gotham Sports App Now Available for Purchase Through Prime Video

The Gotham Sports App, the exclusive direct-to-consumer streaming home of MSG Networks and the YES Network, is now available for purchase through Prime Video fo...

27/02/2026

ESPN, Horizon League Extend Long-Standing Rights Agreement

ESPN and the Horizon League announce a new multi-year, multi-platform media rights agreement, continuing a 38-year collaboration that began with the 1988 Midwes...

27/02/2026

NETGEAR to Showcase Expanded Broadcast Portfolio at 2026 NAB Show

At the 2026 NAB Show in Las Vegas, NETGEAR will highlight its new switch models and major updates to its Engage Controller software. The company's network d...

27/02/2026

Teatro alla Scala Elevates Backstage Communication with Riedel's Bolero Wireless Intercom System

Riedel Communications announces that Fondazione Teatro alla Scala has deployed a...

27/02/2026

Lyuno Leverages Dante AV for Synchronization of Audio and Video Content

Lyuno specializes in media localization, including translation, dubbing, subtitling, and voice-over services for a wide array of entertainment content. The comp...

27/02/2026

Chyron Releases Weather 2.3 with New Data and Automation Features

Chyron Weather 2.3, the latest edition of Chyron's weather visualization suite for broadcasters and meteorologists, recently launched. The release includes...

27/02/2026

Telestream Advances Production-Ready AI Across its Product Portfolio

Telestream, which concentrates in media workflow technologies, announces expanded practical AI enhancements across its Vantage, Vantage Cloud, EDC, Stanza, and ...

27/02/2026

Horizon Sports & Experiences, TOGETHXR Launch Joint Venture to Power Future of Women's Sports

Horizon Sports & Experiences (HS&E), a global sports marketing, media, and live ...

27/02/2026

NBC Reunites Bob Costas, Doug Collins and 1990s NBA Legends for Spurs-Sixers on March 3

Legendary sports broadcasters Bob Costas, Doug Collins, Mike Czar of the Telest...

27/02/2026

IndyCar Season Opener: A Look into the Productions' Fast-Track IP Transformation

Beginning on March 1st, IndyCar will be kicking off their 31st season on the str...

27/02/2026

SVG GameDay, Ep. 5: Philadelphia Eagles' Alessandra Lane Behind the Birds in South Philly

In-venue and creative video staffers at the professional and collegiate level ha...

27/02/2026

Ratings Roundup: NBC Sports Takes Gold With Milano Cortina 2026 Viewership Hitting All Time Highs

Ratings Roundup is a rundown of recent rating news and is derived from press rel...

27/02/2026

SMX League Partners with Owl AI as Official AI Trailblazer to Revolutionize Action Sports Technology

Owl AI a pioneer in artificial intelligence for professional sports, announces a...

27/02/2026

Formula 1 Re-Ups Broadcast Deals With beIN SPORTS in Asia, ESPN in Latin America/Caribbean,

With over 447 million fans in APAC, Formula 1 and beIN will continue to innovate...

27/02/2026

YES Network Spotlights Brooklyn Youth With Kid Reporter' Broadcast Initiative

12-year-old Noelle Taylor will be the Kid Reporter when the Brooklyn Nets host t...

27/02/2026

ESPN Explores New POVs With CapCam, EarCam for NBA All-Star Celebrity Game, College Softball

Entire CapCam system - including camera unit, RF transmitter, and battery - is h...

27/02/2026

Gorillaz Invites Fans Into Its World With Exclusive Spotify Experience and London Mural Quest

Since its inception, Gorillaz has been known for blending art with genre-bending...

27/02/2026

Find Your Next Great Listen With Spotify's New Audiobook Charts

This week, Spotify introduced Audiobook Charts for the U.S. and U.K. The charts make it easy to discover your next favorite book by showing what's popular a...

27/02/2026

Rohde & Schwarz and Viasat to collaborate on NB-NTN IoT test plan for connectivity via satellite

Rohde & Schwarz and Viasat to collaborate on NB-NTN IoT test plan for connectivi...

27/02/2026

Designing AI based features in the MSC

In media technology, big features often steal the spotlight - AI integrations, cloud transformations, automation frameworks. But for the people who use these to...

27/02/2026

Has Video outgrown your DAM?

Digital Asset Management systems sit at the heart of most marcoms operations. They centralise content, organise it, and make it discoverable. Integrated with th...

27/02/2026

NAB

The AI Wild West comes to NAB 2026 and Blue Lucy is bringing the Sheriff The AI Wild West is here, and media organisations are feeling the heat. On Booth W23...

27/02/2026

32.6 Million Watch 2026 State of the Union Address

NEW YORK - February 26, 2026 - An estimated 32.6 million people watched President Donald J. Trump deliver the 2026 State of the Union address on Tuesday, Februa...

27/02/2026

Atomos Introduces Ninja RAW HDR Monitor-Recorder At CP+ Trade Show

Share Copy link Facebook X Linkedin Bluesky Email...

27/02/2026

Scripps to Reacquire 23 ION Stations

Share Copy link Facebook X Linkedin Bluesky Email...

27/02/2026

Survey: 88% of Sports Execs Bullish on Industry's Prospects

Share Copy link Facebook X Linkedin Bluesky Email...

27/02/2026

Chyron Releases Weather 2.3 With New Data and Automation Features

Share Copy link Facebook X Linkedin Bluesky Email...

27/02/2026

Samba: Essentials, Utilities Tally Most Ad Impressions in 2nd-Half 2025

Share Copy link Facebook X Linkedin Bluesky Email...

27/02/2026

TVB: Linear TV Still King

Share Copy link Facebook X Linkedin Bluesky Email...

27/02/2026

AJA U-TAP Helps Stary Technologies with Courtroom Evidenc...

Video is one of the lawyer's most powerful storytelling tools in civil litigation today, whether used to transport jurors to an incident scene or challenge ...

27/02/2026

Foundry releases Nuke 17-0

Creative software developer Foundry today released Nuke 17.0, the latest version of its powerful compositing tool for visual effects and animation. Marking one ...