/// <summary>Sets the isolated state of this batch.</summary>
        public void NotIsolated(TextureAtlas graphics, TextureAtlas font, float alias)
        {
            if (!Isolated && Setup)
            {
                return;
            }

            Setup            = true;
            Isolated         = false;
            IsolatedProperty = null;

            Mesh.SetGlobalMaterial();
            SetFontAtlas(font, alias);
            SetGraphicsAtlas(graphics);
        }
示例#2
0
        /// <summary>Sets the isolated state of this batch.</summary>
        public void NotIsolated(TextureAtlas graphics, TextureAtlas font)
        {
            if (!Isolated && Setup)
            {
                return;
            }

            Setup            = true;
            Isolated         = false;
            IsolatedProperty = null;

            if (Renderer.CurrentShaderSet.UsesLighting && Mesh.Normals == null)
            {
                // Normals are required:
                Mesh.RequireNormals();
            }

            Mesh.SetGlobalMaterial(Renderer.CurrentShaderSet.Normal);
            SetFontAtlas(font);
            SetGraphicsAtlas(graphics);
        }