> For the complete documentation index, see [llms.txt](https://docs.flatredball.com/gum/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flatredball.com/gum/gum-tool/gum-elements/container/is-render-target.md).

# Is Render Target

## Introduction

`Is Render Target` controls whether all instances contained in this container render directly to the screen (if false), or if they first render to their own dedicated target before rendering to the screen (if true).

`Is Render Target` defaults to false (unchecked).

`Is Render Target` enables a number of graphical effects including:

* Container [Alpha](https://docs.flatredball.com/gum/gum-tool/gum-elements/general-properties/alpha.md) (transparency)
* Container [Blend](https://docs.flatredball.com/gum/gum-tool/gum-elements/general-properties/blend.md)
* Alpha-only [Blend](https://docs.flatredball.com/gum/gum-tool/gum-elements/general-properties/blend.md#alpha-only-blends) modes on instances contained in the Container

## Is Render Target Clips Children

Containers with Is Render Target set to true automatically clip their children. This behavior is the same as setting [Clips Children](https://docs.flatredball.com/gum/gum-tool/gum-elements/general-properties/clips-children.md) to true. This happens because render targets internally create a texture which matches their size. Therefore, any items which are placed outside of the bounds of a render target container are not rendered.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2Fgit-blob-7ecd29818c546e5eaa422c27b4f0233907955214%2F22_05%2049%2040.gif?alt=media" alt=""><figcaption><p>Is Render Target set to true clips children</p></figcaption></figure>

## Using Is Render Target for Special Effects

Once a container is rendered to a render target, additional special effects can be applied at runtime. These include:

* Scaling
* Rotating
* Rendering portions using texture coordinates

For a step-by-step tool walkthrough of rotating and scaling a clipped container, see [Rotating and Scaling Clipped Contents](https://docs.flatredball.com/gum/gum-tool/tutorials-and-examples/examples/rotating-and-scaling-clipped-contents.md). For the same pattern in code, see the [SpriteRuntime RenderTargetTextureSource](https://docs.flatredball.com/gum/code/standard-visuals/spriteruntime/rendertargettexturesource.md) documentation.

If you are managing a render target yourself in code instead of using `Is Render Target`, see [Render Targets](https://docs.flatredball.com/gum/code/rendering/render-targets.md) for the blend-mode setup needed to composite translucent content correctly on MonoGame and raylib.

{% hint style="warning" %}
**MonoGame, KNI and FNA:** if your game draws anything before Gum (such as the game world), a visible container with `Is Render Target` erases it. Fix: [set `PreserveContents`](https://docs.flatredball.com/gum/code/rendering/render-targets.md#the-scene-drawn-before-gum-disappears-monogame-kni-fna). Anything drawn by the Gum project itself is not erased.
{% endhint %}

## Source Shader File

A container with `Is Render Target` can set `Source Shader File` to apply a shader to everything inside it. The tool picks and previews `.fx`, `.slang` and `.sksl` files.

{% hint style="info" %}
Picking and previewing `.sksl` files is available in December 2026, or now if building Gum from source.
{% endhint %}

## Shader Parameters

Available in December 2026, or now if building Gum from source.

When a container with `Is Render Target` has a `Source Shader File`, the **Variables** tab lists the parameters that shader declares, one row each, under `Rendering`. A parameter you have not changed shows the default the shader declares and saves nothing.

A parameter with two to four decimal values (such as an offset, a size or a tint) is one row with a field for each value, labeled X, Y, Z and W. When the panel is too narrow for every field on one line, the fields continue on the next line. Typing in any field saves every value of that parameter in the selected state, and undo reverts them together. The set marker at the left of the row shows once for the whole parameter.

Right-click the row and choose `Make Default` to clear all of the parameter's values at once, so it goes back to the shader's default.

Choose `Expose Variable` to expose the whole parameter under one name. Gum asks for the name once, and the generated code gets one property for the parameter (a `Vector2`, `Vector3` or `Vector4` that you can only set). Choose `Un-expose` to remove it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flatredball.com/gum/gum-tool/gum-elements/container/is-render-target.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
