Exemplo n.º 1
0
        void Start()
        {
            this.clusterManager = this.transform.FindChild("Cluster Manager");
            if (this.sampleCamera == null)
            {
                this.sampleCamera = this.transform.FindChild("Master Camera").camera;
            }
            this.distancePicker  = new icGUIHelpers.FloatPicker("Focal Distance", 0.0f, 30.0f);
            this.focalSizePicker = new icGUIHelpers.FloatPicker("Focal Size", 0.0f, 10.0f);
            //this.visualizePicker = new icGUIHelpers.icGUIBoolPicker("Visualize");

            if (!this.depthToColourShader)
            {
                this.depthToColourShader = Shader.Find("Custom/DepthToColour");
            }

            this.depthToColourMat = new Material(this.depthToColourShader);
            this.depthToColourMat.SetFloat("_nearClipMetres", this.sampleCamera.nearClipPlane);
            this.depthToColourMat.SetFloat("_farClipMetres", this.sampleCamera.farClipPlane);
        }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     this.picker = new icGUIHelpers.FloatPicker("GameSpeed", 0f, 3f);
 }
Exemplo n.º 3
0
 public void Awake()
 {
     this.percPicker = new icGUIHelpers.FloatPicker("Percentage of Circle", 0f, 1f);
 }
Exemplo n.º 4
0
 public void Awake()
 {
     this.percPicker = new icGUIHelpers.FloatPicker("Percentage of Circle", 0f, 1f);
 }
Exemplo n.º 5
0
        void Start()
        {
            this.blurPicker = new icGUIHelpers.FloatPicker("Blur Amount", 0.0f, 0.92f);

            this.clusterManager = this.transform.FindChild ("Cluster Manager");
        }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     this.picker = new icGUIHelpers.FloatPicker("GameSpeed", 0f, 3f);
 }
Exemplo n.º 7
0
        void Start()
        {
            this.blurPicker = new icGUIHelpers.FloatPicker("Blur Amount", 0.0f, 0.92f);

            this.clusterManager = this.transform.FindChild("Cluster Manager");
        }
        void Start()
        {
            this.clusterManager = this.transform.FindChild ("Cluster Manager");
            if (this.sampleCamera == null) {
            this.sampleCamera = this.transform.FindChild ("Master Camera").camera;
            }
            this.distancePicker = new icGUIHelpers.FloatPicker("Focal Distance", 0.0f, 30.0f);
            this.focalSizePicker = new icGUIHelpers.FloatPicker("Focal Size", 0.0f, 10.0f);
            //this.visualizePicker = new icGUIHelpers.icGUIBoolPicker("Visualize");

            if (!this.depthToColourShader) {
            this.depthToColourShader = Shader.Find("Custom/DepthToColour");
            }

            this.depthToColourMat = new Material(this.depthToColourShader);
            this.depthToColourMat.SetFloat("_nearClipMetres", this.sampleCamera.nearClipPlane);
            this.depthToColourMat.SetFloat("_farClipMetres", this.sampleCamera.farClipPlane);
        }