# CreateRenderTargets(RenderTextureFormat)

> Creates the sourceRenderTexture and destinationRenderTexture.

## Definition

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

```csharp
public void CreateRenderTargets(RenderTextureFormat colorFormat)
```

### Parameters

**** (\[RenderTextureFormat]\(/engine/6000.5/script-reference/unityengine/rendertextureformat)): Render Texture format.

### Remarks

The render textures are created at a resolution matching the current [PaintContext.pixelRect](/engine/6000.5/script-reference/unityengine/terraintools/paintcontext/pixelrect.md), using the specified [RenderTextureFormat](/engine/6000.5/script-reference/unityengine/rendertextureformat.md).

This function is called internally by [TerrainPaintUtility.BeginPaintHeightmap](/engine/6000.5/script-reference/unityengine/terraintools/terrainpaintutility/beginpaintheightmap.md), [TerrainPaintUtility.BeginPaintTexture](/engine/6000.5/script-reference/unityengine/terraintools/terrainpaintutility/beginpainttexture.md) and [TerrainPaintUtility.CollectNormals](/engine/6000.5/script-reference/unityengine/terraintools/terrainpaintutility/collectnormals.md).

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