# Sandbox.Rendering.CommandList.DrawRefraction

```csharp
void DrawRefraction(CameraComponent camera, Plane plane, in RenderTargetHandle target, RefractionSetup refractionSetup = null)
```

Render a planar refraction using the specified camera and the specified plane. This is for all intents and purposes a
regular view with a plane clipping it. Usually used for rendering under water.

### Parameters

- `camera` (`CameraComponent`)
- `plane` (`Plane`)
- `in target` (`RenderTargetHandle`)
- `refractionSetup` (`RefractionSetup`), default `null`

Declared in [Sandbox.Rendering.CommandList](/api/Sandbox.Rendering.CommandList).
Assembly: `Sandbox.Engine`.
