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

07/10/2026

Dalet Flex LTS Delivers Smarter Media Operations from Ingest to Distribution

Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...

06/09/2026

Dolby and MagentaTV Bring Fans Closer to the FIFA World Cup 2026 in Germany with Dolby Vision and Dolby Atmos

June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...

04/08/2026

Dalet Announces Commercial Availability of Dalia, Bringing Media-Aware Agentic AI to Enterprise Productions

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

18/07/2026

More Than Just a Game: FIFA World Cups Lance Brass Breaks Down Stadium Production & Entertainment

Topics include pre-match ceremonies, live performances, the tournament's fir...

18/07/2026

As the Final Approaches, FIFA and HBS Take Stock of a World Cup That Rewrote the Production Playbook

When FIFA and HBS set out to produce the 2026 FIFA World Cup, the numbers alone ...

18/07/2026

IK Multimedia add Brown Panel Signature Collection to TONEX

Captures nine sought-after Fender amps IK Multimedia's latest TONEX expansion captures a selection of nine rare Brown Panel' Fender amps that were ...

18/07/2026

Frap Tools update the Magnolia

Latest batch ships alongside firmware update Since being unveiled at Superbooth 2025, Frap Tools' debut polysynth has been met with widespread praise, a...

18/07/2026

Netflix Viewing Hit Record 97 Billion Hours in First Half of 2026

Share Copy link Facebook X Linkedin Bluesky Email...

18/07/2026

YouTube's Creative Ecosystem Contributed $60 Billion to U.S. GDP

Share Copy link Facebook X Linkedin Bluesky Email...

17/07/2026

SVG GameDay, Ep. 24: Mercedes-Benz Stadiums Cole Gallagher - Supporting Shows in the ATL

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

17/07/2026

Brooklyn Bowl Williamsburg Stagehands Vote to Join IATSE Local 4

Production workers at Brooklyn Bowl's Williamsburg location voted 15-1 to join IATSE Local 4. The bargaining unit covers 24 production workers at the venue,...

17/07/2026

DAZN and ADI Predictstreet Announce Exclusive Global Prediction Market Partnership

DAZN and ADI Predictstreet have announced an exclusive global strategic partners...

17/07/2026

Zixi and Comcast Technology Solutions Announce Integration for C-Band Satellite Replacement

Zixi and Comcast Technology Solutions (CTS) have announced a strategic integrati...

17/07/2026

Professional Fighters League Announces Multi-Year Partnership with ESPN in Brazil

Professional Fighters League (PFL) has announced a multi-year partnership with E...

17/07/2026

Spectrum Business Launches Spectrum TV Control Pro for Multi-Screen Venue Management

Spectrum Business has announced Spectrum TV Control Pro, a centralized app-based...

17/07/2026

Clark Wire and Cable Appoints Rick Fernandez as Latin American Representative

Clark Wire and Cable has announced that Rick Fernandez, Managing Director of Axxion Consulting, will serve as Independent Manufacturers Representative for Centr...

17/07/2026

TikTok, NBA, and WNBA Announce Multi-Year Global Content Partnership

TikTok, the NBA, and the WNBA have announced a multi-year global content partnership covering highlights distribution, creator access to marquee events, live-ga...

17/07/2026

MSG Entertainment Files Defamation Lawsuit Against Wired Over July 9 Article

Company alleges article contained false and misleading claims regarding customer data...

17/07/2026

Ratings Roundup: Argentina-England Semifinal Breaks Records for FOX; MLB All-Star Game Is Most Watched Since 2018

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

17/07/2026

American Pachuco Gives a Legend of Stage and Screen His Due

(L-R) Edward James Olmos, Luis Valdez, Lou Diamond Phillips and Lupe Valdez attend American Pachuco: The Legend Of Luis Valdez Premiere during the 2026 Sundan...

17/07/2026

Sonuscore introduce Elysion Elements

Full engine access with reduced soundset Sonuscore have steadily been introducing a selection of reduced-cost and free versions of their flagship products r...

17/07/2026

Arturia AstroLab Silver & KeyLab Mk3 Ultra

Two new special-edition models revealed Over the past week, Arturia have launched special-edition versions of both their premium MIDI controller and stage p...

17/07/2026

Dirk Ulrich reacquires Plugin Alliance & Brainworx

Original founder now back at the helm In a message posted on his personal social media accounts, Dirk Ulrich has announced that both Plugin Alliance and Bra...

17/07/2026

Legendary presenter Anton Enus to sign off from SBS World News after 27 years with the network

Legendary presenter Anton Enus to sign off from SBS World News after 27 years wi...

17/07/2026

Millions rise before dawn to watch FIFA World Cup 2026 semi-finals on SBS

Millions rise before dawn to watch FIFA World Cup 2026 semi-finals on SBS 17 July, 2026 Media releases England v Argentina attracted a Total TV reach of a...

17/07/2026

Spectrum Simplifies Control Of Multiple TVs At Bars, Restaurants

Share Copy link Facebook X Linkedin Bluesky Email...

17/07/2026

Foundry Releases SmartRoto for Nuke

Foundry Releases SmartRoto for Nuke Brie Clayton July 17, 2026 0 Comments Spline-based AI powered plugin accelerates time-consuming rotoscoping, helping...

17/07/2026

A Short Documentary About a Giant Pencil Edited with DaVinci Resolve Studio

A Short Documentary About a Giant Pencil Edited with DaVinci Resolve Studio Brie Clayton July 17, 2026 0 Comments SBIFF jury award winner finished fro...

17/07/2026

Wheatstone to Feature Virtual Mixing Platform at IBC 2026

Share Copy link Facebook X Linkedin Bluesky Email...

17/07/2026

Trump Threatens Networks Over Speech Coverage

Share Copy link Facebook X Linkedin Bluesky Email...

17/07/2026

Lightware Sustainability Report Details Product Efficienc...

Lightware has published its second voluntary Sustainability Report, showing how energy efficiency, product longevity and responsible material use are increasing...

17/07/2026

Foundry Unlocks Professional-Grade AI for VFX with Gripta...

Creative software developer Foundry today announced Griptape Enterprise, a new tier of the Griptape AI workflow orchestration platform, extended to meet the str...

17/07/2026

Foundry Releases SmartRoto for Nuke

Creative software developer Foundry today announced the availability of SmartRoto, a new AI-powered plugin upgrade for Nuke, NukeX, Nuke Studio, and Nuke Indie ...

17/07/2026

The Final Release of Blackmagic Fairlight Live is Now Available!

The Final Release of Blackmagic Fairlight Live is Now Available! Brie Clayton July 16, 2026 0 Comments Fairlight Live is a new audio mixer designed fo...

17/07/2026

Leveraging All of Entertainment's IP

Leveraging All of Entertainment's IP Andy Marken July 16, 2026 0 Comments Nobody ever wins the games. Period. There are survivors. There\s no win...

17/07/2026

Few mics are trusted on an antique Stradivarius copy 4099 is

From intimate acoustic settings to large-scale festival stages, her focus has remained constant: preserving the true natural voice of the violin in every perfor...

17/07/2026

RT Radio 1 continues its summer of stories, music, sport and conversation

New and returning series, live festival broadcasts, powerful documentaries and major sporting moments headline RT Radio 1's summer schedule RT Radio 1 is...

17/07/2026

NVIDIA Vera Rubin Maximizes Intelligence per Dollar for Post-Training Workloads - a Key Metric for Agentic AI

Think of a professional athlete. What separates elite performers is what happens...

17/07/2026

Dith, Jacqui and Louise bring hurling fans together ahead of the All-Ireland Finals

Up For The Match - Live From Croke Park this Saturday at 8pm on RT One and RT ...

17/07/2026

DiscoverIreland.ie announced as official show sponsor of The Traitors Ireland series 2

RT Commercial has today announced DiscoverIreland.ie, as sponsor of The Traitor...

16/07/2026

Business Innovation Synergizer: Grants of up to 30,000 for media organisations

Media organisations with tested plans for new products, services or revenue models can now apply for grants of up to 30,000 through the Business Innovation Syn...

16/07/2026

SVG Students To Watch: Kaden Sherman, Albany State University

This recent graduate and Georgia native has turned an early fascination with live production into a growing passion for camera work In the live-sports-video in...

16/07/2026

TNDV Marks First Year of Aspiration 35 Cinematic Production Truck

TNDV is marking the first anniversary of Aspiration 35, a mobile production truck built around ARRI Alexa 35 Live camera systems. Over its first year, the truck...

16/07/2026

ATSC Releases First Major Revision to A/85 Audio Loudness Recommended Practice Since 2013

ATSC has completed a major revision to its A/85 Recommended Practice: Techniques...

16/07/2026

FloSports Named Exclusive Global Media Partner for 2026 CrossFit Games

FloSports has announced an exclusive global media partnership with CrossFit for the 2026 CrossFit Games, presented by Air National Guard, beginning July 21 in S...

16/07/2026

Sennheiser Releases Spectera Firmware 1.4 and Command Button

Sennheiser has released firmware version 1.4 for its Spectera wireless system and announced the Spectera Command Button (Cat. No. 701014). The update adds comma...

16/07/2026

ESPN and Southwestern Athletic Conference Announce Multi-Year Media Rights Agreement Through 2030-31

ESPN and the Southwestern Athletic Conference (SWAC) have announced a multi-year...

16/07/2026

Audio-Technica Releases 20 Series Control Application for Elgato Stream Deck

Audio-Technica has announced the 20 Series Control Application, a Stream Deck plug-in for compatible Audio-Technica USB microphones. The application is compatib...

16/07/2026

SSL Live L550 Plus Consoles Power Audio Production for The Voice France Season 15

The fifteenth season of The Voice - La plus belle voix on TF1 used four Solid St...