# SETUP GUIDE

### About Materials

The demo scene makes use of 3 materials with special shaders to draw shadows on house sprites.

<table><thead><tr><th width="229.5"></th><th></th></tr></thead><tbody><tr><td>MT Village House – Component</td><td><p>Common house sprites use this material.</p><p>It makes sure shadow sprites only get drawn within visible areas of house sprites.</p></td></tr><tr><td>MT Village House – Component – No Shadow</td><td><p>House sprites that should never be covered by shadow use this material.</p><p>Shadow sprites will not get drawn upon sprites with this material.</p></td></tr><tr><td>MT Village House – Shadow</td><td><p>Shadow sprites use this material.</p><p>It works together with the two materials above to mask shadows inside house sprites and make sure shadows only get drawn once.</p></td></tr></tbody></table>

You can change the shadow color globally with the `Tint` parameter of the material.

### House Presets

In `Assets/Cainos/Pixel Art Platformer - Village House/Texture/House Preset` you can find house presets in single image, in case you do not want to use the prefab ones.

### Custom Sort Axis

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

<img src="/files/9zQdCG0DtXw8t5hCjNJP" alt="" width="375">

### 2D Lighting

Import `Patch - URP 2D Lit` located at the root folder of the asset. It will replace current shaders and some materials with URP 2D Lighting supported version.

At the `MT Village House – Shadow` material, make sure its render queue value is higher than the render queue value of the two component materials.

As the component materials have render queue value of 3000. We set the shadow material’s render queue to 3001.

<img src="/files/lUMwAwfXnDimhnDMLjEI" alt="" width="375">

<img src="/files/IjULAEU7EzWTxma4TQwM" alt="" width="375">


---

# 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/pixel-art-platformer-village-house/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.
