branding stuff
This commit is contained in:
1 parent
c61e26a8e1
commit
55bc4aaa89
34 files changed
+14360
-6436
No files matched your search
@@ -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() {
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
|
||||
[RequireComponent(typeof(Light))]
|
||||
public class ThemeLightBinder : MonoBehaviour
|
||||
{
|
||||
public Preferences preferences;
|
||||
public float themeTime = 0.25f;
|
||||
private Light _light;
|
||||
|
||||
private void Start() {
|
||||
_light = gameObject.GetComponent<Light>();
|
||||
|
||||
if (preferences == null) {
|
||||
Debug.Log("Light Binder needs Preferences.");
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
private void Update() {
|
||||
_light.color = preferences.Theme().Evaluate(themeTime);
|
||||
}
|
||||
|
||||
public string ToString() {
|
||||
return "Theme Light Binder";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e033fa8fe501cfa47a7cc7ed3296a22c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in new issue
Block a user