Once installed, select the camera of your scene and add the component ‘Rain’.
Once the effect is added, you will see something like this:
With ‘Strength’ (1) you can select the strength of the effect.
Adjust the amount of drops with ‘Amount’ (2) and its size with ‘Size’ (3). You can change the speed with ‘Speed’ (4). The angle at which they fall can be modified with ‘Rotation’ (5). With ‘Distortion’ (6) you can adjust how the drops distort the background image.
The ‘Rain’ effect consists of three layers, the first is made of drops that do not move and you can change their intensity with ‘Static’ (7). The other two do have movable drops and you can adjust them with ‘Dynamic #0’ (8) and ‘Dynamic #1’ (9).
If you activate ‘Color’ (10) you can modify the color of the drops (13) and the screen (11). You can also select the operation used to blend the drops with the background image with ‘Blend’ (12). If you want the drops to leave a little trail, activate ‘Tint trails’ (14).
Finally, clicking on ‘[doc]’ (15) will open the web with the documentation and if you click on ‘Reset’ (16) all the parameters will return to their default values.
All the code is inside the namespace ‘Nephasto.RainAsset’. The first thing you should do is import the namespace:
If ‘myCamera’ is a valid camera and you want to add the effect to it, you can do something like this:
For more information you can check the comments of the code and the attached demo.
Any questions or suggestions you have, I will be happy to answer you in