Ejemplo n.º 1
0
        /// <summary>Resize every mask and repopulate the navigation mask.</summary>
        /// <param name="newResolution"></param>
        protected void ResizeResolution(int newResolution)
        {
            if (newResolution == resolution)
            {
                return;
            }

            masks        = new Masks(newResolution);
            m_Resolution = newResolution;

            Assert.AreEqual(navigationMaskTexture.width, navigationMaskTexture.height);
            Assert.AreEqual(navigationMaskTexture.width, newResolution);
        }
Ejemplo n.º 2
0
        /*----------------------------------------------------------------------------
        *           Private Methods.
        *  ----------------------------------------------------------------------------*/

        private void PopulateFields()
        {
            masks     = new Masks(resolution);
            eyesights = new Eyesights(renderSightKernelId, computeShader, kMaxSights);
        }