# SETUP GUIDE

### Lighting Support for URP and URP 2D

By default, the water shaders are in built-in unlit type. Import the `Patch - URP Lit` to add lighting support for normal 3D lights in URP.

For URP 2D Lighting, please import the patch version that corresponds to your Unity version:

* Before Unity 6: Import `Patch - URP 2D Lit`
* Unity 6.0 to 6.2: Import `Patch - URP 2D Lit - Unity 6.0 to 6.2`
* Unity 6.3 and later: Import `Patch - URP 2D Lit - Unity 6.3`

In Unity 6, you should also turn off the `Compatibility Mode` in `Project Settings>Graphics`, as the water rendering depends on the Render Graph.

<figure><img src="/files/jqVaG25eYbRaiVwfJARK" alt="" width="563"><figcaption></figcaption></figure>

After importing the patch, you need to add a `Pixel Water Renderer Feature` to your current Universal Rnder Pipeline Asset, and set the `Behind Water Mask` to the layers you want to be shown behind the water.

Be noted, you must not include the water layer in the `Behind Water Mask`.

### Change Water Area Size with Handles

You can drag the four white square handles at the corners to change the size of the water.

For the handles to be displayed, you need to select the water object and have the gizmos visibilty toggle on (the top right highlighted button).

Please do not selec the Rect Tool (left highlighted button) while using the size handles. The handles of the Rect Tool will overlap with the size handles.

<figure><img src="/files/2ETiOc64893gWWWqyQof" alt="" width="563"><figcaption></figcaption></figure>

### Custom Sort Axis&#xD;

It is recommended that you set `Transparency Sort Mode` to `Custom Axis` and `Transparency Sort Axis` to `(0,0,1)` at the Graphics settings.

<figure><img src="/files/snX5icmPtEtg8FXnnIw6" alt="" width="375"><figcaption></figcaption></figure>

### Color Space

It is recommended to use `Linear` color space with this asset. You can find it in `Project Settings/Player/Other Settings`.

<figure><img src="/files/uuUAoHXHxn77awaHDONu" alt="" width="375"><figcaption></figcaption></figure>


---

# 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.cainos.net/interactive-pixel-water/setup-guide.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.
