Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


InputExtraction

Provides methods for extracting scene data and populating integration worlds for use in light transport calculations.
Read time 1 minuteLast updated 10 days ago

Definition

public static class InputExtraction

Remarks

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.

Classes

Class

Description

InputExtraction.BakeInputContainer for scene data to be used for light transport calculations.