Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SphericalHarmonicsL2.AddAmbientLight

Switch to Manual
public function AddAmbientLight(color: Color): void;

Parameters

Description

Add ambient lighting to probe data.

If SH probe is used to calculate lighting, this function has the effect of adding ambient light into probe data.