3DSelfie  Hansjoerg Hofer (1026632), Sebastian Metzler (0927550)
setFilterParams.cs
Go to the documentation of this file.
1 using UnityEngine;
2 using System.Collections;
3 
4 public class setFilterParams : MonoBehaviour {
5 
6 
7  GameObject gaussX;
8  GameObject gaussY;
9 
10  public float sigma;
11  public float kernelSize;
12 
13  // Use this for initialization
14  void Start () {
15  gaussX = GameObject.Find ("GaussQuadX");
16  gaussY = GameObject.Find ("GaussQuadY");
17  }
18 
25  void Update () {
26  gaussX.GetComponent<Renderer>().material.SetFloat ("_Sigma", sigma);
27  gaussX.GetComponent<Renderer>().material.SetFloat ("_KernelSize", kernelSize);
28  gaussY.GetComponent<Renderer>().material.SetFloat ("_Sigma", sigma);
29  gaussY.GetComponent<Renderer>().material.SetFloat ("_KernelSize", kernelSize);
30  }
31 }