# destinationRenderTexture

> (Read Only) RenderTexture that an edit operation writes to modify the data.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.TerrainTools](/engine/6000.6/script-reference/unityengine/terraintools.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public RenderTexture destinationRenderTexture { get; }
```

### Remarks

This RenderTexture stores the modified data represented by a PaintContext. A terrain tool will typically read from `sourceRenderTexture`, modify the data, and write to `destinationRenderTexture`. The Scatter functions ([PaintContext.ScatterHeightmap](/engine/6000.6/script-reference/unityengine/terraintools/paintcontext/scatterheightmap.md) or [PaintContext.ScatterAlphamap](/engine/6000.6/script-reference/unityengine/terraintools/paintcontext/scatteralphamap.md)) read from `destinationRenderTexture` to distribute the modified data back to the source Terrain tiles. `destinationRenderTexture` is created by [PaintContext.CreateRenderTargets](/engine/6000.6/script-reference/unityengine/terraintools/paintcontext/createrendertargets.md), with size and format matching `sourceRenderTexture`.

Additional Resources: [PaintContext](/engine/6000.6/script-reference/unityengine/terraintools/paintcontext.md), [PaintContext.sourceRenderTexture](/engine/6000.6/script-reference/unityengine/terraintools/paintcontext/sourcerendertexture.md).
