Texture BakedIndirectTexture { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The BakedIndirectTexture property provides indirect lighting from a baked volume texture. This texture is compiled with your map and is provided by an env_volumetric_controller. It is used to enhance the visual quality of volumetric fog by incorporating precomputed lighting information.

Usage

To use the BakedIndirectTexture property, ensure that your map includes an env_volumetric_controller that provides the necessary baked volume texture. This property is not intended for runtime modification, and you should not expect to add new fog volumes dynamically when using this baked texture.

Example

// Example of accessing the BakedIndirectTexture property
VolumetricFogParameters fogParams = new VolumetricFogParameters();
Texture bakedTexture = fogParams.BakedIndirectTexture;

// Use the bakedTexture as needed, for example, in rendering or lighting calculations.