Skip to content

Commit

Permalink
GLES shader fix for curve analytic font nonlinear shader
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-rogovin committed Jan 29, 2015
1 parent ad11312 commit ae8012b
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -23,7 +23,7 @@ shader_in mediump vec2 wrath_CurveAnalyticBottomLeft;
shader_in mediump float wrath_CurveAnalyticGlyphIndex;

mediump float
wrath_glyph_signed_distance(in vec2 GlyphCoordinate)
wrath_glyph_signed_distance(in mediump vec2 GlyphCoordinate)
{
mediump float d;
mediump vec2 GlyphTextureCoordinate, glyph_texture_reciprocal_size;
Expand All @@ -40,7 +40,7 @@ wrath_glyph_signed_distance(in vec2 GlyphCoordinate)


mediump float
wrath_glyph_compute_coverage(in vec2 GlyphCoordinate)
wrath_glyph_compute_coverage(in mediump vec2 GlyphCoordinate)
{
mediump float d;
d=wrath_glyph_signed_distance(GlyphCoordinate);
Expand All @@ -65,7 +65,7 @@ wrath_glyph_compute_coverage(in vec2 GlyphCoordinate)
}

mediump float
wrath_glyph_is_covered(in vec2 GlyphCoordinate)
wrath_glyph_is_covered(in mediump vec2 GlyphCoordinate)
{
return step(0.0,
wrath_glyph_signed_distance(GlyphCoordinate));
Expand Down

0 comments on commit ae8012b

Please sign in to comment.