分享一个UI边框流光效果

1赞

感谢 感谢

2.x伸手党自取HelloWorldUIFrameLight.zip (310.6 KB)
如果要单条流光效果,看源码

// 想要单条流光使用这行代码
// float dirColor = smoothstep(0.,1.,dot( uvFromCenter,dir));

感谢楼主分享

2赞

QQ20220726-115553-HD

这个报错是啥意思啊???
[Asset DB] …/src/kuang-ui.effect - kuang-vs:vert: Error EFX2001: can not resolve ‘common’

[Asset DB] …/src/kuang-ui.effect - kuang-vs:vert: Error EFX2001: can not resolve ‘common’

at EffectImporter.import (C:\ProgramData\cocos\editors\Creator\3.6.3\resources\app.asar\modules\engine-extensions\extensions\engine-extends\dist\importer\importers\effect.ccc:1:2309)

at C:\ProgramData\cocos\editors\Creator\3.6.3\resources\app.asar\node_modules@editor\asset-db\libs\task.ccc:1:2765

at new Promise ()

at ImportTask.importAsset (C:\ProgramData\cocos\editors\Creator\3.6.3\resources\app.asar\node_modules@editor\asset-db\libs\task.ccc:1:2648)

at runMicrotasks ()

at runNextTicks (internal/process/task_queues.js:58:5)

[Scene] download failed: import://31/31357e70-a9ea-4ce3-8788-7bdf44ac4a69.json?_t=1723117790383, status: 0(error)

把effect 文件里的 #if SAMPLE_FROM_RT 都删了把

膜拜大佬·~~

20240809_145357

增加了一个新的流光效果

来自https://forum.cocos.org/t/shader-flowlight/96282

从2.x修改到3.8 ,

1赞

kuang-ui-new.zip (1.5 KB)

mark一下

不错,喜欢这个