-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransparency.cs
More file actions
30 lines (24 loc) · 869 Bytes
/
transparency.cs
File metadata and controls
30 lines (24 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using UnityEngine;
using System.Collections;
public class transparency : MonoBehaviour {
private Transform cl1;
private Transform cl2;
private Transform cl3;
private Transform cl4;
private Transform cl5;
public static float darkness=0f;
public static float density=1f;
// Use this for initialization
void Start () {
}
void OnGUI(){
GUI.Label(new Rect(300,25,200,20),"Clouds Density:");
density = GUI.HorizontalSlider(new Rect(300,45,130,20),density,0.5f,1.5f);
GUI.Label(new Rect(600,25,200,20),"Clouds Darkness:");
darkness = GUI.HorizontalSlider(new Rect(600,45,130,20),darkness,0f,.4f);
GUI.Label(new Rect(760,25,200,80),"It takes time to reduce cloudes density (old particle have to die). Due to the particle based system, total number of unique clouds is unlimited");
}
// Update is called once per frame
void Update () {
}
}