Version: Unity 6.0 (6000.0)
LanguageEnglish
  • C#

InputExtraction

class in UnityEngine.LightTransport

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides methods for extracting scene data and populating integration worlds for use in light transport calculations.

The InputExtraction class serves as the primary interface for converting Unity scene data into formats suitable for light transport calculations. It extracts geometry, materials, lights, settings, and light probe information from open scenes and prepares them for use with integrators.

This class is essential for:

  • Converting Unity scenes to light transport input data structures.
  • Preparing acceleration structures for ray tracing.
  • Preparing input data for various light probe integrators.

The extracted data can be used with the GPU-accelerated (RadeonRaysContext) implementation.

Static Methods

Method Description
ComputeOcclusionLightIndicesFromBakeInputDetermines the most influential lights for occlusion calculations at each probe position.
ExtractFromSceneExtracts all relevant scene data for light transport calculations from the currently open scenes.
GetShadowmaskChannelsFromLightIndicesRetrieves the shadowmask channel assignments for specified mixed lights.
PopulateWorldConverts extracted scene data into optimized data structures for light transport calculations.