SETUP GUIDE
Last updated
Last updated
The demo scene makes use of 3 materials with special shaders to draw shadows on house sprites.
MT Village House – Component
Common house sprites use this material.
It makes sure shadow sprites only get drawn within visible areas of house sprites.
MT Village House – Component – No Shadow
House sprites that should never be covered by shadow use this material.
Shadow sprites will not get drawn upon sprites with this material.
MT Village House – Shadow
Shadow sprites use this material.
It works together with the two materials above to mask shadows inside house sprites and make sure shadows only get drawn once.
You can change the shadow color globally with the Tint
parameter of the material.
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.
It is recommended that you set Transparency Sort Mode
to Custom Axis
and Transparency Sort Axis
to (0,0,1)
at the graphics settings.
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.