|
1 | 1 | # URPUnderwaterEffects
|
2 | 2 | An implementation of underwater effects that show under the water line.
|
3 | 3 |
|
4 |
| -# Instalation |
5 |
| -Download the files by clicking the green Code button on the top right corner of this repo. Extract the zip file and drag the folder into your assets of your unity project. |
6 |
| - |
7 |
| -# Legal Stuff |
8 |
| -Feel free to use this in anything commercial or personal. Credit would be greatly appreciated but isn't required. |
9 |
| - |
10 | 4 | # How to use
|
11 |
| -In your URP render settings, click add feature and choose Horizon Line Texture and |
12 |
| -any of the additional effects shown. Set the Horizon Line Texture render pass event to before post processing and set |
13 |
| -the additional effect's render pass events to before post processing. Make sure that the horizon texture pass is the first pass called. It should work after that. |
14 |
| - |
15 |
| -## Make sure that your water plane has the HorizonLineDraw layer (case sensitive). |
16 | 5 |
|
17 |
| -If you are using hlsl (urp shader code), make sure your shader has the following snippet in the pass or subshader blocks. |
| 6 | +Download the lates release or download from the green code button. |
18 | 7 |
|
19 |
| -```hlsl |
20 |
| -Blend SrcAlpha OneMinusSrcAlpha |
21 |
| -LOD 300 |
22 |
| -
|
23 |
| -Tags |
24 |
| -{ |
25 |
| - "Queue" = "Transparent" |
26 |
| - "RenderType" = "Transparent" |
27 |
| - "RenderPipeline" = "UniversalRenderPipeline" |
28 |
| -} |
29 |
| -``` |
| 8 | +## Make sure that your water plane has the HorizonLineDraw layer (case sensitive). |
30 | 9 |
|
31 |
| -If you are using shader graph, make sure your graph settings look like this: |
32 |
| - |
| 10 | +In your URP render settings, click add feature and choose Horizon Line Texture and |
| 11 | +any of the additional effects shown. Make sure that the horizon texture pass is the first pass called. It should work after that. |
33 | 12 |
|
34 | 13 | # Extenstion
|
35 | 14 | If you wish to add more effects on top of the existing ones, you need to sample the _HorizonLineTexture. This lets you seperate the waterline from the air above the water.
|
36 | 15 |
|
37 |
| -# Roadmap |
38 |
| -* [x] Caustics |
39 |
| -* [x] Distortion |
40 |
| -* [x] Sunrays |
41 |
| -* [ ] Better Waterline Transition |
42 |
| -* [x] Bubbles |
43 |
| - |
44 |
| -# Maybe (Doesn't seem to fit the vfx theme of this project) |
45 |
| -* [ ] Plants |
46 |
| -* [ ] Rocks |
47 |
| -* [ ] Sand Textures |
48 |
| -* [ ] Fish |
49 |
| - |
50 | 16 | # Cotributions
|
51 | 17 | If you wish to contriubute to this repo, feel free to make a pull request.
|
52 | 18 |
|
|
0 commit comments