Changeset 1976


Ignore:
Timestamp:
Oct 4, 2012, 5:21:05 PM (11 years ago)
Author:
sam
Message:

neercs: fix shader for older GL versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/video/text.lolfx

    r1928 r1976  
    2424    float v = float((in_Char >> 4u) & 0xfu) / 32.0 + 0.5;
    2525#else
    26     float u = 3.0 / 32.0;
    27     float v = 3.0 / 32.0 + 0.5;
     26    float u = mod(in_Char.x, 16.0) / 32.0 + 0.0;
     27    float v = floor(in_Char.x / 16.0) / 32.0 + 0.5;
    2828#endif
    2929    pass_UV = vec2(u, v);
     
    4646
    4747    float E = 0.0;
    48     float F = 1.0;
    49     float G = 1.0;
    50     float H = 1.0;
     48    float F = mod(floor(in_Attr.y / 8.0), 16.0) / 15.0;
     49    float G = (mod(in_Attr.y, 8.0) * 2.0 + floor(in_Attr.x / 128.0)) / 15.0;
     50    float H = mod(floor(in_Attr.x / 16.0), 8.0) / 7.0;
    5151#endif
    5252
Note: See TracChangeset for help on using the changeset viewer.