Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

SphericalHarmonicsL2.AddDirectionalLight

public void AddDirectionalLight(Vector3 direction, Color color, float intensity);

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.

Did you find this page useful? Please give it a rating: