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

Definition at line 114 of file AVR_CameraFade.cs.

115  {
116  if (overlayColor.a > 0 && cam==Camera.main)
117  {
118  GL.PushMatrix();
119  GL.LoadOrtho();
120  fadeMaterial.SetPass(0);
121  GL.Begin(GL.QUADS);
122  GL.Color(overlayColor);
123  GL.Vertex3(0, 0, 0);
124  GL.Vertex3(1, 0, 0);
125  GL.Vertex3(1, 1, 0);
126  GL.Vertex3(0, 1, 0);
127  GL.End();
128  GL.PopMatrix();
129  }
130  }
Color overlayColor
Value of the "_Color" component of the materials shader.