Class ShaderPrograms.ColorfulTextShaderProgram
- Namespace
- Lime
- Assembly
- Lime.dll
Colorizes SimpleText's or RichText's grayscale font.
public class ShaderPrograms.ColorfulTextShaderProgram : ShaderProgram
- Inheritance
-
ShaderPrograms.ColorfulTextShaderProgram
- Inherited Members
Remarks
To apply this shader you need:
- Data/Fonts/GradientMap.png file with size of 256x256 and ARGB8 compression.
- Use Tag field of SimpleText or TextStyle to specify color row from this file.
Constructors
ColorfulTextShaderProgram()
public ColorfulTextShaderProgram()
Fields
GradientMapTextureSize
public const int GradientMapTextureSize = 256
Field Value
Properties
GradientRampTexture
public static ITexture GradientRampTexture { get; }
Property Value
Methods
GetInstance()
public static ShaderPrograms.ColorfulTextShaderProgram GetInstance()
Returns
StyleIndexToColorIndex(int)
public static float StyleIndexToColorIndex(int styleIndex)
Parameters
styleIndex
int