Esempio n. 1
0
        /// <summary>Sets the font atlas for this batch.</summary>
        public void SetFontAtlas(TextureAtlas font, float alias)
        {
            FontAtlas = font;
            Mesh.SetFontAtlas(font);

            Mesh.Material.SetFloat("TopFontAlias", Fonts.OutlineLocation + alias);
            Mesh.Material.SetFloat("BottomFontAlias", Fonts.OutlineLocation - alias);
        }
Esempio n. 2
0
 /// <summary>Sets the font atlas for this batch.</summary>
 public void SetFontAtlas(TextureAtlas font)
 {
     FontAtlas = font;
     Mesh.SetFontAtlas(font);
 }