llealloo / audiolink

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

Don't sample the GrabPass in CRT for chronotensity #117

Closed pema99 closed 3 years ago

pema99 commented 3 years ago

Chronotensity pass was using AudioLinkDecodeAsUInt which samples the GrabPass. Instead, it should sample the last frame of the CRT directly, since there is a delta of one frame between those 2 methods. This in turn caused ping-ponging values even when there is no audio (I tested with 0 gain). This fixes flickering with chronotensity.

Also, Charles calculates a value for comparison in that pass dependent on if you want to use filtered output or not, but then he never uses this value. I put the value to use where I believe it was intended, and it looks much better to me.