Beispiel #1
0
 void Start()
 {
     _camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Camera>();
     _postEffects = _camera.GetComponent<PostEffectsCamera>();
     _velShader = _postEffects.VelocityShader;
     _postEffects.AddToRenderList(this);
     _defaultShader = renderer.material.shader;
 }
Beispiel #2
0
 void Start()
 {
     _camera      = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();
     _postEffects = _camera.GetComponent <PostEffectsCamera>();
     _velShader   = _postEffects.VelocityShader;
     _postEffects.AddToRenderList(this);
     _defaultShader = renderer.material.shader;
 }