# Sandbox.SceneLight.SetBakedLightIndex

```csharp
void SetBakedLightIndex(int index, bool mixedShadows = False)
```

Makes this a baked light addressed by probe/lightmap index textures (0-254).
Pass -1 to restore dynamic lighting. Index 255 is reserved for an empty texture channel.

### Parameters

- `index` (`int`)
- `mixedShadows` (`bool`), default `False`

Declared in [Sandbox.SceneLight](/api/Sandbox.SceneLight).
Assembly: `Sandbox.Engine`.
