Skip to content

Improvements to LightVolumeAudiolink#61

Merged
REDSIM merged 3 commits into
REDSIM:mainfrom
SophieBlueVR:alupdate
Sep 20, 2025
Merged

Improvements to LightVolumeAudiolink#61
REDSIM merged 3 commits into
REDSIM:mainfrom
SophieBlueVR:alupdate

Conversation

@SophieBlueVR

Copy link
Copy Markdown
Contributor

Added options to control how much boost is provided from audiolink similar to how Poiyomi's shader uses these factors - namely separate values to add and multiply the base intensity by at minimum and maximum audio levels. This gets us much more control over the effects, including decreasing when audio increases.

Switched to using the light volume Intensity value and material emission value rather than multiplying the color itself - I'm not sure if there was a specific reason it was done the other way, so I can rework this if I've gone the wrong direction here.

Added a checkbox to allow setting the base color of the associated mesh renderers as well as the emission color.

Added a "no change" option for the color, so we can boost intensity without affecting color. Good for a case where your colors are set in the light volume or material programmatically.

Improved efficiency for the for loops, this should remove one extern per iteration by caching the stop value up front.

* Add options to control how much boost is provided from audiolink
  similar to how Poiyomi's shader uses these factors
* Switch to using the light volume Intensity value rather than
  multiplying the color itself
* Also switch to using the material emission intensity value
* Allow setting the base color of mesh renderers as well as emission
  color
* Improve efficiency in for loops, decreasing the number of extern calls
  per iteration
* Add a "no change" option for the color, so we can boost intensity
  without affecting color.  Good for a case where your colors are set
  elsewhere
@REDSIM

REDSIM commented Jul 23, 2025

Copy link
Copy Markdown
Owner

Thanks for the improvements! The reason why I didn't use the intensity is to be able to set a unique intensity per Light Volume: some of the volumes might need to be dim, some - bright, and I thought it would be nice to have a control on it.

@SophieBlueVR

Copy link
Copy Markdown
Contributor Author

Oh that makes sense then! I had exactly the same thought, but in my case I just made sure to store the initial values of the light volumes intensity and then use that as the basis for audiolink to react - thus you can have different values for all of the ones attached to this one object.

Good too see I wasn't too far off base here!

* Fixed a typo where I had 'Automatic' instead of 'Auto'
* Added support for using the AL volume as a band
@ListenerJubatus

Copy link
Copy Markdown

I'm using this code in one of my worlds (Chromium) and it works perfectly

@REDSIM REDSIM merged commit d19e698 into REDSIM:main Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants