Image-based lighting uses textures to add lighting to objects. These textures mimic the light in a specific real world environment - they're known as 'environment textures'.
There are several environment textures built into Spark AR Studio - you can also add your own.
Environment textures are made from images that capture a scene from all directions. For example, using the Office environment texture included in Spark AR Studio would provide an object with similar lighting to an office.
Environment textures should be HDR images. We recommend maximum 4K images.
Environment textures can only be applied to objects that use a physically-based material.
Select the material in the Assets panel. In the Inspector Panel:
You can also add preset environment textures to the Assets panel, and then apply them to materials in your scene:
There's a huge range of environment textures to choose from on HDRI Haven and other similar websites.
Import the texture into the Assets panel by clicking + next to Assets, and selecting Import from Computer.
Apply it directly to a material in the Inspector panel by selecting New Environment Texture from the dropdown under Environment:
The texture will be listed in the Assets panel. The image in the Assets panel won't look exactly like the texture you imported, because the texture undergoes some processing before it can be used as an environment texture.
Environment textures can increase the size of your effect, which can impact performance.
Before you export your effect, make sure any unused environment textures have been removed from the Assets panel. Otherwise, they'll still be included in the overall size of your effect.