皆大欢喜 发表于 2022-8-9 12:36:42

Lightning Effect 1.1 两点间的闪电流效果特效



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.

页: [1]
查看完整版本: Lightning Effect 1.1 两点间的闪电流效果特效