Stratkit Diplomacy Borders Module¶
Package that tracks changes in province ownership, and relation between the players as an encoded color assigned to each of provinces, on a dedicated layer. In order to use this package a dedicated Camera or a RenderPass needs to be set, that will render specified layer, and apply desired effect (ie. edge detection) as a screen space effect.
How to setup¶
- Create
DiplomacyBordersModule
and correspondingDiplomacyBordersConfig
- Create game object layer that the data will be rendered to
- Create
Material
that will provinceMeshRenderer
will use - Set values in
DiplomacyBordersConfig
How to use¶
- Add a dedicated camera that will render specified layer
- Use
RenderTexture
as camera target texture to render the province data mask - Use dedicated shader to apply the data gathered from the mask on the main camera.