⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

enum LightingSource

This determines where lighting data comes from! The default is Manual, where the application provides all lighting via the Lighting functions. Devices that can estimate lighting from the user’s surroundings also have the World option.

Enum Values

   
Manual Lighting values are set manually by the application. Use the Lighting functions to configure the scene lighting.
World Lighting data is pulled from the world via the device’s light estimation capabilities. StereoKit will overwrite any data in Lighting.Ambient, MainLight, and Reflection when using this source. You can check Lighting.SourceAvailable to see if this is supported before requesting it.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!