# Sandbox.Graphics.RenderToTexture

```csharp
static bool RenderToTexture(SceneCamera camera, Texture target)
```

> **Obsolete.** Use CameraComponent.RenderToTexture

Render this camera to the specified texture target

### Parameters

- `camera` (`SceneCamera`)
- `target` (`Texture`)

### Returns

`bool`

Declared in [Sandbox.Graphics](/api/Sandbox.Graphics).
Assembly: `Sandbox.Engine`.
