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

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

24/11/2026

HEDD Audio announce the HEDDphone DX

Second open-back dynamic headphone design revealed After launching their first pair of moving-coil headphones in late 2025, HEDD Audio have followed up with...

24/11/2026

iZotope release Nectar 5

All-in-one vocal suite upgraded In their second launch since settling into their new home at Boris FX, iZotope have just introduced the latest and greatest ...

24/11/2026

Gear of the Year 2026

This year's choices now live! The December 2026 issue of SOS is now live, and as always, we've rounded up our favourite hardware and software produc...

24/11/2026

Henry Goodman On The Future Of Live Broadcast Audio

Henry Goodman, Director of Product Management, reflects on the continued rise of software-defined production, the EBU's Dynamic Media Facility project, and ...

24/11/2026

Adder Names Nick Singh as CTO

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

24/11/2026

NABLF's Celebration of Service' Special to Air Starting Nov. 28

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

24/11/2026

The Environmental Impact of M&E: Turning Awareness into Action

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

24/11/2026

Grass Valley Adds Native ZoomISO Cloud Support to AMPP

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

24/11/2026

Digital Subscription Offers Drive Retail Purchases, Report Says

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

24/11/2026

Grass Valley brings ZoomISO Cloud into AMPP as a native a...

Integration gives production teams greater control over remote contributors while reducing the infrastructure required for remote contribution workflows Grass ...

24/11/2026

RE:Vision Effects - RE:FLEXOR is here and CYBERWEEK Sale

RE:Vision Effects - RE:FLEXOR is here and CYBERWEEK Sale Pierre Jasmin November 24, 2026 0 Comments Here comes our new product, RE:Flexor . RE:Flexor ...

24/11/2026

Nea Radio Modernises its Broadcasting Operations with DHD

Nea Radio, a multiple-award-winning regional broadcaster serving the Tr ndelag region of central Norway, has completed an extensive technical modernisation of i...

24/11/2026

Brightline Lighting Unveils MOD2 Light

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

24/11/2026

More Than 100 Sony Cameras Capture Netflix's Colorful Wonka'

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

24/11/2026

Diversified Names Mark Pritchard CFO

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

24/11/2026

FCC Will Vote on Ownership Rules in December

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

24/11/2026

Half of Digital Audiences Missed by Linear TV, Study Finds

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

24/11/2026

DigitalGlue releases creativespace Pulse a free Mac app t...

DigitalGlue releases creative.space Pulse, a free Mac app that shows creatives what is slowing them down Pulse is free to download and use - built for editors,...

24/11/2026

KRK Kreate Latte Monitors Help Tell a Story at Miamis Ala...

Alacran Studios in Miami Beach brings together professional recording, podcasting, live events, and streaming applications, which requires a flexible environmen...

24/11/2026

Black Friday 2026 - CYME brings together deals from independent photo and video software makers

Black Friday 2026 - CYME brings together deals from independent photo and video ...

24/11/2026

REKT Productions Expands Production with Blackmagic Design

REKT Productions Expands Production with Blackmagic Design Brie Clayton November 23, 2026 0 Comments Melbourne production company builds on extensive ...

24/11/2026

The Gorilla Black Friday Sale Is BACK!

The Gorilla Black Friday Sale Is BACK! Brie Clayton November 23, 2026 0 Comments A new generation of Gorilla. A legendary discount. This year, Gorill...

24/11/2026

Save big on ZEISS this holiday season

Save big on ZEISS this holiday season Brie Clayton November 23, 2026 0 Comments Great discounts on the very best from ZEISS Photography. All ZEISS len...

24/11/2026

Antigravity's Black Friday A1 Drone Sale - Save Up to 35%!

Antigravity's Black Friday A1 Drone Sale - Save Up to 35%! Brie Clayton November 23, 2026 0 Comments Shop Antigravity's best deals of the year...

24/11/2026

Insta360 Black Friday Sale Offers Savings of up to US$170 on Cameras, Gimbals, Microphones, and More

Insta360 Black Friday Sale Offers Savings of up to US$170 on Cameras, Gimbals, M...

24/11/2026

Adobe Launches 2026 Black Friday Sale, Cutting Creative Cloud Pro by Up to 77%

Adobe Launches 2026 Black Friday Sale, Cutting Creative Cloud Pro by Up to 77% Brie Clayton November 23, 2026 0 Comments Hero image courtesy Deposit P...

24/11/2026

Topaz Labs Cuts Prices by Up to 67% in 2026 Black Friday Sale

Topaz Labs Cuts Prices by Up to 67% in 2026 Black Friday Sale Brie Clayton November 23, 2026 0 Comments Hero image courtesy Deposit Photos Topaz Labs...

24/11/2026

Steve Coogan and Rob Brydon head north as Sky reveals official trailer for The Trip to the Northern Lights

The multi-award-winning comedy series from acclaimed director Michael Winterbott...

24/11/2026

58,000 square feet, 24 people, no dropouts: inside iStreamU's 24-hour livestreams

Ivan Gonzalez entered the industry at 19 and built his career engineering and pr...

23/11/2026

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

The ESPN Edge Innovation Conference is a yearly touchstone for next-generation and one of the most interesting and challenging continues to be the consumer adop...

23/11/2026

2026 Sports Broadcasting Hall of Fame: Troy Aikman, an Unexpected Second Calling

It started as a favor to a friend. And, if Troy Aikman was being completely honest, the prospect of a two-week paid European vacation didn't sound half bad,...

23/11/2026

Full Day Productions President Dave Chamberlin on the Opportunities in Bringing Sports and Live Entertainment Together

From the ESPY Awards and NFL Honors to college volleyball and the Met Gala, stor...

23/11/2026

TGL, WTGL Are Sounding as Interesting as They Look

Cinematic sound gives the upstart tech-heavy league - both the men's and the women's version - a powerful underscore It's like doing Foley for a m...

23/11/2026

AWS AI To Power Real-Time Win Probabilities During The Skins Game on Prime Video

A match-play engine rebuilt for the Skins format will drive on-screen graphics and drone AR overlays on Black Friday Prime Video will continue to push the boun...

23/11/2026

Panasonic Announces AU-SHX1 Compact Cinema Camera for Broadcast and Live Production

Panasonic announced the AU-SHX1, the first compact cinema camera in LUMIX histor...

23/11/2026

ATSC Celebrates Jerry Whitaker and Zandra Clarke on SMPTE Honors

ATSC, The Broadcast Standards Association, has congratulated former Vice President of Standards Development Jerry Whitaker and board member Zandra Clarke on rec...

23/11/2026

DoP Peter Vidulich Shoots Netflixs Wonkas The Golden Ticket with More Than 100 Sony Cameras

Bringing Wonka's The Golden Ticket and its chocolate factory to life for Net...