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

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

04/07/2026

Detective Conan: Fallen Angel of the Highway Opens in Dolby Cinemas Across Japan, Presented in Dolby Atmos and Dolby ...

April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...

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

19/05/2026

Publicis Groupe to Buy LiveRamp for $2.2 Billion

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

Tubi Launches 2026 FIFA World Cup Fox Hub

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

Viamedia Introduces a New Geographic Intelligence Layer

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

NFL Pushes Back Against Shift of Games to Streaming

Share Copy link Facebook X Linkedin Bluesky Email...

19/05/2026

LYNX Technik Brings SDI IP Integration and High-Density F...

LYNX Technik, provider of modular signal processing solutions for broadcast, post, and professional AV will showcase its latest signal processing solutions at B...

19/05/2026

Media Links Integrates Xscend IP Transport Platform with...

Media Links, a leading developer and manufacturer of IP media transport solutions, has announced the integration of its Xscend platform with Skyline Communicat...

19/05/2026

Media Links Expands in Southeast Asia with Clearcast Asia...

Collaboration expands regional partner ecosystem as Media Links showcases IP media transport solutions on stand 4M4-4 and alongside Clearcast Asia on stand Me...

19/05/2026

LynTec to Deliver Scalable Power Distribution and Integra...

Company Highlights Labor-Saving Control and Custom Branding Opportunities Designed to Increase Integrator Profitability LynTec, a leading manufacturer of ele...

19/05/2026

Mago Studio Moves AI Video Beyond Prompts with New Production-Focused Tools

Mago Studio Moves AI Video Beyond Prompts with New Production-Focused Tools Brie Clayton May 18, 2026 0 Comments New Capabilities Bring Controllable, ...

19/05/2026

It May be Time to Stop and Take an AI Breather

It May be Time to Stop and Take an AI Breather Brie Clayton May 19, 2026 0 Comments If the rock you stay on starts to roll, jump clean. Or you'll...

18/05/2026

For PPI, New Patents and ProCrewz App Development Portend Positive Outlook for 2026

Despite a bumpy start to the year, the provider of event-production support and ...

18/05/2026

Daktronics to Install 11 LED Displays at UNCs Kenan Stadium in 2026

Daktronics has partnered with the University of North Carolina to manufacture and install 11 LED displays totaling more than 10,000 square feet and more than 14...

18/05/2026

CBS LA and Los Angeles Rams Announce Multi-Year Local Television Partnership

CBS LA has announced a multi-year partnership with the Los Angeles Rams, covering exclusive local broadcasts of Rams preseason games, weekly year-round programm...

18/05/2026

Skyline Communications Integrates DataMiner xOps with AWS Elemental MediaConnect Router

Skyline Communications has announced an integration between its DataMiner xOps p...

18/05/2026

eCLUTCH Expands International Distribution and Content Partnerships

eCLUTCH, the hybrid esports platform powered by iKOMG, has announced an expansion of its distribution across Europe, MENA, Africa, and Asia, along with new cont...

18/05/2026

Behind The Mic: Yankees Legends Reunite to Call Game Against Red Sox with Kevin Burkhardt

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

18/05/2026

NBC Sports Brings the WNBA Back Home After 23 Years Away

With 22 games this season, the production team looks forward to tweaking and enhancing the coverage After 8,660 days off the air, the WNBA returned to NBC yest...

18/05/2026

A Morbid Weight Loss Trick Triggers an Insatiable Ghost in Saccharine

(L-R) Midori Francis and Natalie Erika James attend the Saccharine premiere during the 2026 Sundance Film Festival at The Ray Theatre on January 22, 2026, in ...

18/05/2026

And the Winners of the 2026 Spotify Podcast Awards in Mexico Are. . .

Last night, the Spotify Podcast Awards in Mexico returned to the country's capital. Now in its second year, the evening honors creators whose voices are hel...

18/05/2026

Roland launch Zenology GX for iPad

ZEN-Core synth goes mobile Roland's powerful ZEN-Core software synthesizer has just been introduced to the iPad, offering a convenient entry point into ...

18/05/2026

leONE from fedDSP

Versatile new limiter plug-in announced Based in Sheffield, UK, fedDSP offer a range of plug-ins that span the music production, live sound and high-end med...

18/05/2026

Viiri Audio launch Aava

A new use for convolution? Viiri Audio's debut plug-in aims to do something a little different with convolution processing, allowing users to adjust all...

18/05/2026

Delta Goodrem shines for SBS as more than 3.27 million Australians tune in for Eurovision

Delta Goodrem shines for SBS as more than 3.27 million Australians tune in for E...

18/05/2026

L3Harris Delivers Life-Saving Robotic Systems to Keep Australian Defence Personnel Out of Harm's Way

The Australian Defence Force uses L3Harris T4 and T7 robots for explosive ordnan...

18/05/2026

CVP strengthens commitment to the DACH broadcast market w...

Continued investment across Europe and Germany is expanding local teams and improving access to stock, regional expertise, and specialist broadcast support. CV...

18/05/2026

NVIDIA CEO Jensen Huang at Dell Technologies World: Demand Is Going Parabolic, Utterly Parabolic'

Agentic AI inference at one-tenth the cost per token with NVIDIA Vera Rubin NVL7...

18/05/2026

VEON Announces Investor Meetings for a Potential Dual Tranche USD Notes Offering and Related Tender Offer for 2027 Notes

18 May 2026 Dubai and New York, May 18, 2026 - VEON Ltd. (NASDAQ: VEON), a glob...

18/05/2026

Sky News offers ad-free podcasts and bonus episodes for just 2.99 as listening surges 102%

Monday 18 May 2026 Sky News offers ad-free podcasts and bonus episodes for just...

18/05/2026

Comscore March 2026 Consumer AI Chatbot Usage Rankings Show Claude Gaining Share

Comscore March 2026 Consumer AI Chatbot Usage Rankings Show Claude Gaining Share OpenAI's ChatGPT maintains lead while Anthropic's Claude continues to c...

17/05/2026

Delta Goodrem's Eurovision Eclipse marks end of a stellar run

Delta Goodrem's Eurovision Eclipse marks end of a stellar run 17 May, 2026 Media releases Bulgaria wins Eurovision 2026 Relive every spellbinding mome...

17/05/2026

'Oasis' Premieres on Netflix June 19

Back to All News Oasis Premieres on Netflix June 19 Entertainment 17 May 2026 GlobalSpain Link copied to clipboard Summer, sunshine, the beach, parties. T...

16/05/2026

Eventide & Newfangled Audio release Fixate:Midrange

Helps to deliver a clean, balanced midrange Developed alongside Newfangled Audio, the latest plug-in in Eventide's software collection has been designed...

16/05/2026

Engine DJ 5.0 update now live

Brings onboard stem rendering to RANE System One Engine DJ have just released Engine DJ 5.0, a free update for their Engine DJ OS embedded hardware and Engi...

16/05/2026

Boris FX Continuum Pairs AI Precision and Advanced Creative Controls

Boris FX Continuum Pairs AI Precision and Advanced Creative Controls Jessie Electa Petrov May 16, 2026 0 Comments The 2026.5 release adds automatic de...

16/05/2026

Spectrum TV Adds Free Access to Discovery+

Share Copy link Facebook X Linkedin Bluesky Email...

16/05/2026

Tower Family Foundation Passes $3.5 Million Milestone

Share Copy link Facebook X Linkedin Bluesky Email...

16/05/2026

AIMS to Offer IPMX Education at InfoComm 2026

Share Copy link Facebook X Linkedin Bluesky Email...

16/05/2026

Rise AV Launches Second Year of UK Elevate Program

Share Copy link Facebook X Linkedin Bluesky Email...

15/05/2026

Seattle Sounders FC and Reign FC Announce Seattle Soccer Celebration at Waterfront Park

Seattle Sounders FC and Seattle Reign FC, in partnership with RAVE Foundation an...

15/05/2026

How Sound Designer Dan Brumm Built Blueys Audio World with Sennheiser and Neumann

Dan Brumm has served as sound designer on Bluey, the Australian children's t...

15/05/2026

Applications Close May 31 for Mark Brunner Professional Audio Scholarship

The Professional Audio Manufacturers Alliance (PAMA) and Shure Incorporated are accepting applications for the 6th annual Mark Brunner Professional Audio Schola...

15/05/2026

Netflix Expands NFL Coverage With Additional Games Starting in 2026

Netflix has announced an expanded NFL schedule for 2026 and beyond under a four-year partnership extension with the NFL through the 2029-30 season. Each season,...

15/05/2026

Ateme Supports TVRIs SRT-Based Live Sports Contribution and Distribution Workflow

Ateme is supporting TVRI (Televisi Republik Indonesia) with a contribution and d...

15/05/2026

Concacaf Launches New Website and Mobile App Powered by Deltatre

Concacaf has announced the launch of a new website and mobile app built on Deltatre's FORGE platform. Concacaf.com and the mobile app, available on iOS and ...

15/05/2026

Qatar Media Corporation Launches QBC Business Channel in 4K via Eutelsat

Eutelsat has announced the launch of QBC Business Economic Channel by Qatar Media Corporation, broadcasting in 4K/UHD via Eutelsat's 7/8 West video neighbo...