找回密码
 立即注册
搜索

[编辑器/功能拓展] Lightning Effect 1.1闪电效果

[复制链接]
135 |0
发表于 2023-2-14 13:16:58 | 显示全部楼层 |阅读模式


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.


两点之间突然放电

闪电效果。使用线性渲染器和动画纹理渲染两点之间的闪电。
每个动画用3个纹理表示(总共9个纹理):
64块4096x4096像素
32块2048x4096像素
16块2048x2048像素
1.2版本材料实例化+错误修复
版本1.1所有纹理都是黑白的。
瓦片按列排列。你可以通过删除一个列来减小纹理大小,或者将整个纹理缩小几次。
添加LightningScript.cs脚本到对象,然后指定目标游戏对象和所需的材料。
脚本将在运行时添加LineRenderer,并不断在tile和动画LineRenderer顶点之间交替。






回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表