|
Video 1
| Video 2 |
Abrupt electric discharge between two points
Lightning effect. Renders lightning between two points using Linerenderer and animated texture.
Package contains 3 animations
Each animation represented with 3 textures (total 9 textures):
64 tiles 4096x4096 pixels
32 tiles 2048x4096 pixels
16 tiles 2048x2048 pixels
version 1.2 material instansing + bugfixes
version 1.1 all textures are black&white.
Tiles are organized in columns. You can reduce texture size by removing one of the columns or scale whole texture down a couple of times.
Add LightningScript.cs script to the object then specify target game object and desired material.
Script will add LineRenderer in the runtime and continuously alternate between tiles and animate LineRenderer vertices.