llealloo / audiolink

Audio reactive prefabs for VRChat
Other
354 stars 40 forks source link

Add header guard to AudioLink.cginc #163

Closed PiMaker closed 2 years ago

PiMaker commented 2 years ago

This is a public facing API, and as such should have a header guard, so that modular shaders can include the file wherever necessary without stepping on each other's toes.

As a practical example, adding AudioLink support to LTCGI usually breaks shaders when both are used in combination on one material, since LTCGI.cginc also includes AudioLink.cginc.

pema99 commented 2 years ago

Very nice, thanks.