�'s Ramblings

Synesthesia Quick Tip: Load Media

2023-10-05T01:31:45

Note: This is outdated, check the docs for modern methods.

This simple function returns user media if any is selected, or if not it returns black.

To change the fallback color just change vec3(0) to the color of your choice

vec3 usermedia_or_black() {

    vec3 color = vec3(0);

  if (_exists(syn_UserImage)){

    color = _loadUserImage().rgb;

  }

  return color;
}
ufffd.com