branding stuff

This commit is contained in:
ntr committed 2022-04-14 12:07:55 +10:00
1 parent c61e26a8e1
commit 55bc4aaa89
34 files changed
+14360 -6436

No files matched your search

+7
View File
@@ -25,6 +25,11 @@ public class SpectrumMaterialBinder : MonoBehaviour
Debug.Log("Material Binder needs WASAPI Source.");
gameObject.SetActive(false);
}
if (preferences == null) {
Debug.Log("Material Binder needs Preferences.");
gameObject.SetActive(false);
}
}
private void Update() {
@@ -78,6 +83,8 @@ public class SpectrumMaterialBinder : MonoBehaviour
// having them as a public property didn't work
_material.SetFloat("_SpectrumSize", source.SpectrumSize);
_material.SetTexture("_SpectrumDataTexture", _texture);
_material.SetColor("_ThemeStart", preferences.Theme().Evaluate(0.0f));
_material.SetColor("_ThemeEnd", preferences.Theme().Evaluate(0.0f));
}
public string ToString() {