# Global Shader Variables

You can use global shader variables to change all materials at once. This can be helpful for creating in-game graphics settings.

{% hint style="warning" %}
Global Shader Variables stay changed when you exit Play Mode!
{% endhint %}

The following table contains the currently supported global shader variables.

| Shader Variable                  | Description                                                                                                                                                                                                                                                                                    |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `_GlobalTargetDensityMultiplier` | <p>Gets multiplied with the Target Density of each grass material.<br>Since Target Density is higher when the number is smaller (for historical reasons), be careful: A multiplier above 1 <strong>reduces</strong> the density, while a multiplier below 1 <strong>increases it</strong>.</p> |


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stixgames.com/advanced-features/global-shader-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
