Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

SphericalHarmonicsL2.AddDirectionalLight

Switch to Manual
public function AddDirectionalLight(direction: Vector3, color: Color, intensity: float): void;

Parameters

Description

Add directional light to probe data.

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