# Creating Shaders

Shaders are ways that we can cause the sprites of objects to render in different ways. Some examples you are most likely familliar with are the Jammed shader which is what is used to change the appearance of Jammed enemies, the Rainbow shader which is how Rainbow Chests have their animated texture, and the Paradox shader, which is what the Paradox character uses.

### Setup

Firstly, if you don't have it already, install [Shaderforge](https://acegikmo.com/shaderforge/) for Unity 2017.4.40, as it makes creating shaders actually bearable and this tutorial relies on it.

### Making the shader

Open Unity after installing Shaderforge and navigate to the tabs at the top and select Window > Shader Forge

![](/files/lPPFXa6TQWq3VP0bR4CI)

You will be met with a screen like this:

![](/files/SvmHlW94xr7vi25yhMe9)

Click "New Shader", then select "Sprite" (Note: this doesn't lock any features of ShaderForge, rather it is just a template for Sprites)&#x20;

You'll be met with a screen that looks like this:

![](/files/vKHxW1FYftGr8EOxdns7)

&#x20;While this may seem complex, there are only a few basic things that are required by the Shader to function with Gungeon's sprites:

![](/files/Qr7W3CWHvnk6KOG50TkL)

### Some Examples

This shader causes enemies to pulse an orange color over time.

![](/files/6gwVwbNnJFuRO7STB1X9)

This one creates a cool-looking orb effect.

![](/files/BKKd6VRCyD3B3LJAUp2Z)

![](/files/FeQq1xhXLbb3VOGzDgXi)


---

# 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://mtgmodders.gitbook.io/etg-modding-guide/shaders/creating-shaders.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.
