audiolink使用教程
前言
终于填了这个坑,之前写ltcgi文章的时候就一直想把audiolink一起写了,结果拖到现在
介绍
GitHub简介已经解释的很清楚了
AudioLink is a system that analyzes and processes in-world audio into many different highly reactive data streams and exposes the data to Scripts and Shaders.
The per-frequency audio amplitude data is first read briefly into Udon using Unity's GetOutputData. It is then sent to the GPU for signal processing and buffered into a CustomRenderTexture. Then, the CustomRenderTexture is broadcast globally (called _AudioTexture) which can be picked up by shaders both in-world and across all avatars.
看不懂?省流:一个用于处理音频信息的并转换为CustomRenderTexture的预制件.
你可以拿他做一些好玩的东西,比如:让你avatar身上的物件跟着音乐变化,让你的地图部分摆件跟着音乐做出不同的动画效果等等
安装
前往 https://github.com/llealloo/audiolink/releases 获取unitypackage
使用vcc
https://llealloo.github.io/audiolink/index.json
兼容的着色器列表
目前据我所知主流的着色器基本都能够使用audiolink,不过我还是列个标表罢(水文章嫌疑)
如果有更多的着色器,欢迎评论区补充
使用
等待撰写