# Sandbox.Graphics.SetupLighting

```csharp
static void SetupLighting(SceneObject obj, RenderAttributes targetAttributes = null)
```

Setup the lighting attributes for this current object. Place them in the targetAttributes

### Parameters

- `obj` (`SceneObject`)
- `targetAttributes` (`RenderAttributes`), default `null`

Declared in [Sandbox.Graphics](/api/Sandbox.Graphics).
Assembly: `Sandbox.Engine`.
