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

27/11/2026

KIT Plugins release H2 0011 & H2 Comp

First plug-ins in latest partnership range KIT Plugins have just announced the launch of the first two plug-ins to be created in partnership with Detroit-ba...

27/11/2026

Radical Bundle 5 from Sound Radix

Three new plug-ins added to collection Sound Radix's flagship plug-in bundle has just received its biggest update yet, with Powair 2, Mute matic Studio ...

27/11/2026

DANCING WITH THE STARS WELCOMES BACK POPULAR PRO DANCER AND INTRODUCES BRAND NEW FACE FOR 10th SERIES

RT has announced the professional dancer line-up for the upcoming tenth season ...

27/11/2026

RT Register of External Activities for Q1/2026 (statistical summary)

RT is today publishing the statistical summary of RT 's Register of External Activities for the first quarter of 2026. This includes external activities fo...

26/11/2026

Aim Audio introduce the Essence+ Pack

Mic, shockmount & pop shield bundle announced Aim Audio have just introduced a new hardware bundle that combines their cardioid condenser mic with a shockmo...

26/11/2026

Blox Grain from Pine DSP

Turn any audio input into shimmering clouds Pine DSP have just introduced a new granular effect that can run as a standalone plug-in, or as a module withi...

26/11/2026

Akai update the MPC Sample

Now supports user-created Knob FX Akai's portable MPC has just received a firmware update that introduces a range of user-requested features and tackles...

26/11/2026

Top Black Friday & Cyber Monday Deals

Shop the best deals this weekend Sale season is upon us and to help SOS readers cut through all the noise, weve done the legwork for you and rounded up some...

26/11/2026

Maxon Cyber Sale - Buy Any Annual Plan, Get Maxon Plus Starter Free For a Month

Maxon Cyber Sale - Buy Any Annual Plan, Get Maxon Plus Starter Free For a Month Brie Clayton November 25, 2026 0 Comments Every annual plan, from Cine...

26/11/2026

Deals on Matthews Studio Equipment Select Gear for Black Friday - now thru 11/30

Deals on Matthews Studio Equipment Select Gear for Black Friday - now thru 11/30 Brie Clayton November 25, 2026 0 Comments Black Friday: Stands & Clam...

26/11/2026

DoubleVerify to Support LG Ad Solutions' Home Screen Inventory

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

26/11/2026

The Thanksgiving 1986 DX Opening That Flooded North American Dials

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

26/11/2026

Beyond COP31: Why standards matter for an all-electric future

There may be no consensus in the negotiating room. There is no ambiguity in the science, said UN Secretary-General Ant nio Guterres reacting to the lack of con...

26/11/2026

Come for the Games, Stay for the Community With GeForce NOW

Good games bring people together. This GFN Thursday, GeForce NOW is celebrating the members, creators and community moderators who turn every session into somet...

25/11/2026

SMT to Support Thanksgiving Weekend NFL and College Basketball Broadcasts

SMT will support sports broadcasts across Amazon Prime Video, Netflix, NBC Sports, ESPN, TNT, The CW and Raycom over the Thanksgiving holiday weekend. SMT produ...

25/11/2026

2026 Sports Broadcasting Hall of Fame: Bob Iger, a Storyteller's Instincts With an Executive's Vision

Although Robert A. Iger is best known as the executive who brought Pixar, Marvel...

25/11/2026

Novation update the Launchkey Mk4 & FLkey 2

New arpeggiator modes, full NKS support & more Novation have just released a pair of free firmware updates that bring some new features to their Launchkey M...

25/11/2026

RC Mix reveal RC Kick

Launched alongside RC Snare update LA-based developer RC Mix have just launched the latest addition to their line of acoustic drum processing plug-ins. RC K...

25/11/2026

MNTRA launch Living Sky

A new class of reverb MNTRA have recently launched a new GPU-powered plug-in which they say represents a new class of reverb . Developed in collaboration ...

25/11/2026

Aim Audio Essence+ Pack

Mic, shockmount & pop shield bundle announced Aim Audio have just introduced a new hardware bundle that combines their cardioid condenser mic with a shockmo...

25/11/2026

5. Safety Day at SGL Carbon: Focus on the Safe Use of Lifting Equipment

Last week, the 5th global Safety Day took place at all SGL Carbon sites. This year's Safety Day focused on the theme Lifting Equipment . Various informati...

25/11/2026

AIMS Sets Winter 2027 IPMX Product Testing and Certification Event

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

25/11/2026

Blue Lucy, Moments Lab Integrate Solutions

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

25/11/2026

Sony Holiday Promotions on Cameras & Lenses Going on Now - Up to 50% Off!

Sony Holiday Promotions on Cameras & Lenses Going on Now - Up to 50% Off! Brie Clayton November 25, 2026 0 Comments It's that time of year, and So...

25/11/2026

Blackmagic Design Products Deployed at FUJIFILM Corporation's In House Studio

Blackmagic Design Products Deployed at FUJIFILM Corporation's In House Studi...

25/11/2026

AIMS Announces Winter 2027 IPMX Product Testing and Certification Event

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

25/11/2026

FCC Outlines More Flexible Approach in Approving Broadcast Ownership Transactions

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...

25/11/2026

Introducing Maxon Plus: AI-Assisted 3D Creation and 3D Review, Directed by the Artist

Introducing Maxon Plus: AI-Assisted 3D Creation and 3D Review, Directed by the A...

25/11/2026

Telemedelln Migrates Post Workflows to DaVinci Resolve Studio

Telemedell n Migrates Post Workflows to DaVinci Resolve Studio Brie Clayton November 24, 2026 0 Comments From color to editing, the Colombian station ...

25/11/2026

Grass Valley integrates ZoomISO Cloud natively into AMPP

Grass Valley integrates ZoomISO Cloud natively into AMPP Brie Clayton November 24, 2026 0 Comments Integration gives production teams greater control ...

25/11/2026

Two Alumni Named Finalists for 2027 Music Educator Award

Two Alumni Named Finalists for 2027 Music Educator Award Rachel Jayson BM '09 MM '09 and Michael Coelho MM '15 are among 10 educators being recogn...

25/11/2026

San Francisco-Area Independent Tower Owner Seeks New Tenants

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

25/11/2026

Women In Medias 2026 Holiday Toast Celebrates the Women S...

Women In Media (WiM) will raise a glass to the women and gender-nonconforming creatives shaping entertainment at its ninth annual Holiday Toast on Saturday, Dec...

25/11/2026

Heard, not seen: Jonathan Musialski in his own words

Getting started in the businessMusic has always been part of my life. When I was a kid, my mother played me Romani music, Jean-Michel Jarre and Pink Floyd. I st...

25/11/2026

Sporting and business leaders unite in landmark coalition to drive lasting change for women and girls through sport

Wednesday 25 November 2026 Sporting and business leaders unite in landmark coal...

25/11/2026

Powering energy access across Africa: why quality infrastructure matters

When electricity reaches a home, hospital, school or business for the first time, the connection itself is only part of the story. The equipment behind it also ...

25/11/2026

Digital Product Passport: From Mandatory Requirement to Data Foundation for Agent-Centric Commerce

Digital Product Passport: From a Mandatory Requirement to a Data Source for Agen...

25/11/2026

Broadcaster Louise Cantillon goes in search of faith, belonging and what Ireland believes in today

Take me to Church airs Thursday, 3 December, 10:15pm on RT One and RT Player ...

24/11/2026

How Meta, Cosm, and ESPN Are Leading a New Era of Immersive Sports Experiences

A less cumbersome VR headset is key to encouraging consumer acceptance, particularly by sports fans At the ESPN Edge Innovation Conference this month, the imme...

24/11/2026

SVG GameDay, Ep. 41: Cuento Marketings Matt Coy - Show Calling Across the Nation

In-venue and creative video staffers at the professional and collegiate level have one major thing in common: the intensity and attention to detail ramps up dur...

24/11/2026

ESPN, Disney, NFL and IMAX to Bring Super Bowl LXI to IMAX Theaters for the First Time

ESPN, The Walt Disney Company, the NFL and IMAX have reached a partnership to br...

24/11/2026

Grass Valley Brings ZoomISO Cloud into AMPP as a Native Application

Grass Valley has announced that Zoom's ZoomISO Cloud is now available to run natively within AMPP, Grass Valley's cloud-based production platform. ZoomI...

24/11/2026

Diversified Names Mark Pritchard Chief Financial Officer

Diversified, an audiovisual, broadcast and digital experience integrator, has named Mark Pritchard its chief financial officer. Pritchard has more than 30 year...

24/11/2026

Vindral and Sportswik Deliver Grassroots Football Streams with Two-Second Latency in Sweden

Min Fotboll, the official app of the Swedish Football Association, streams grass...

24/11/2026

IMG's Adam Kelly on Turning Production From a Tool Into a Weapon' and Building for MLS, Netflix

The sports-media company's president advises rightsholders to stop treating ...

24/11/2026

Yahoo Sports Network to Stream 25 Live Major Arena Soccer League Matches This Season

Yahoo Sports Network, the free streaming channel operated by C15 Studio, will be...

24/11/2026

Netflix Looks To Establish New Holiday Tradition With NFL's First Thanksgiving Eve Game

NBC Sports, NEP support a production featuring more than 55 cameras, a cinematic...

24/11/2026

UJAM introduce Beatmaker & Usynth Suave

Two new drum & synth instruments revealed UJAM's Beatmaker series has just gained two new virtual instruments that have been inspired by the sounds of m...