VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
virtual void AVR.Core.AVR_CameraFade.Awake ( )
inlineprotectedvirtual

Definition at line 48 of file AVR_CameraFade.cs.

49  {
50  if (fadeMaterial == null) fadeMaterial = new Material(Shader.Find("AVR/CameraFade"));
51  overlayColor.a = start_value;
52  fadeMaterial.SetColor("_Color", overlayColor);
53  }
float start_value
Starting alpha value of the color
Material fadeMaterial
Material we fade to. Leave this blank for a uniform color.
Color overlayColor
Value of the "_Color" component of the materials shader.