botany shader
This commit is contained in:
1 parent
0f9576a67b
commit
d36158bc48
14 files changed
+276
-223
No files matched your search
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class BotanyBinder : MonoBehaviour {
|
||||
public Material material;
|
||||
|
||||
private void Start() {
|
||||
if (material == null) {
|
||||
Debug.Log("Material Binder needs a Material.");
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateWildness(Slider s) {
|
||||
material.SetFloat("_Wildness", s.value);
|
||||
}
|
||||
|
||||
public void UpdateZoom(Slider s) {
|
||||
material.SetFloat("_Zoom", s.value);
|
||||
}
|
||||
|
||||
public void UpdateBrightness(Slider s) {
|
||||
material.SetFloat("_Brightness", s.value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user