Skip to content

Commit 00dd7df

Browse files
authored
Create README.md
1 parent 8c5b2b5 commit 00dd7df

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Unity Dynamic Split
2+
Dynamic Voronoi 2-player 2D split screen system with optimized rendering using stencil buffer in standard rendering pipeline.
3+
Project was made using Unity 2019.4.0f1 but it should run on Unity 2017+ no problem.
4+
5+
## Features
6+
- fully dynamic, assign player transforms, system takes care of the rest
7+
- fast rendering using stencil buffer
8+
- customizable split line color
9+
- FXAA implementation
10+
11+
## Running the demo
12+
Clone the repo and open the folder in (ideally) latest Unity. Demo scene can be found in `Assets/Scenes/Demo.unity`
13+
14+
## Implementation in your project
15+
1. Drag `Split Screen Camera` prefab into your scene
16+
2. Assign Players and set PlayerCount either dynamically in runtime or before playing the scene
17+
3. Make sure you use Material with `MaskedStandard` shader, for example, copy `Demo/Materials/Background.mat`
18+
19+
## Custom shaders
20+
All you need to do in your own shaders to make them work with split screen rendering is to put this Stencil block in.
21+
```
22+
Stencil {
23+
Ref [_VoronoiCellsPlayerStencil]
24+
Comp [_MaskedStencilOp]
25+
}
26+
```
27+
(you can find the full shader in `Assets/Shaders/MaskedStandard.shader`)
28+
29+
## License
30+
It FREE. [MIT License, look it up.](https://github.com/mkskelet/unity-dynamic-split/blob/master/LICENSE)
31+
32+
## Donate
33+
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RAZBYJADPV83E&source=url)
34+
35+
If you really don't have anything better to do with your money, you can pay for my coffee/pizza/netflix/spotify/resharper lol.

0 commit comments

Comments
 (0)