Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


InputExtraction.BakeInput

Container for scene data to be used for light transport calculations.
Read time 1 minuteLast updated 10 days ago

Definition

public class InputExtraction.BakeInput

Remarks

An opaque data structure containing all scene information needed for light baking calculations, including geometry, materials, lights, and probe positions. This object is created by InputExtraction.ExtractFromScene and consumed by InputExtraction.PopulateWorld.
The BakeInput contains:
  • Mesh geometry and material data.
  • Light source information.
  • Terrain height maps and hole maps.
  • Instance transformation data.
  • Lighting related settings.
  • Light probe group positions.

Methods

Method

Description

AddProbeRequestAdds a ProbeBakeRequest to the BakeInput.
GetOcclusionLightIndicesRetrieves the occlusion light indices from the BakeInput.
GetProbePositionsRetrieves the probe positions from the BakeInput.
SetOcclusionLightIndicesSets the occlusion light indices on the BakeInput.
SetProbePositionsSets the probe positions on the BakeInput.