예제 #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);
        }
예제 #2
0
        /*----------------------------------------------------------------------------
        *           Private Methods.
        *  ----------------------------------------------------------------------------*/

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