Пример #1
0
 /// <summary>
 /// Sets the active Outlined Object and passes its world-space Bounds to all the
 /// ScreenSpaceQuad objects in the quads array.
 /// </summary>
 /// <param name="obj"></param>
 public void SetActiveObject(OutlinedObject obj) {
   activeObject = obj;
   RenderTexture tmp = RenderTexture.active;
   RenderTexture.active = bufferObj.Buffer;
   GL.Clear(true, true, clearColor, 1f);
   RenderTexture.active = tmp;
 }
Пример #2
0
        /// <summary>
        /// Sets the active Outlined Object and passes its world-space Bounds to all the
        /// ScreenSpaceQuad objects in the quads array.
        /// </summary>
        /// <param name="obj"></param>
        public void SetActiveObject(OutlinedObject obj)
        {
            activeObject = obj;
            RenderTexture tmp = RenderTexture.active;

            RenderTexture.active = bufferObj.Buffer;
            GL.Clear(true, true, clearColor, 1f);
            RenderTexture.active = tmp;
        }