Changeset 2180


Ignore:
Timestamp:
Dec 24, 2012, 4:48:36 PM (7 years ago)
Author:
sam
Message:

neercs: fix background colour computations with shader model 3.

File:
1 edited

Legend:

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

    r2172 r2180  
    4646    vec4 tmp_Attr = in_Attr * 255.0;
    4747
    48     float A = 0.0;
    49     float B = 0.0;
    50     float C = 0.0;
    51     float D = 0.0;
     48    float A = floor(tmp_Attr.w / 32.0) / 7.0;
     49    float B = mod(floor(tmp_Attr.w / 2.0), 16.0) / 15.0;
     50    float C = (mod(tmp_Attr.w, 2.0) * 8.0 + floor(tmp_Attr.z / 32.0)) / 15.0;
     51    float D = mod(floor(tmp_Attr.z / 4.0), 8.0) / 7.0;
    5252
    53     float E = 0.0;
     53    float E = (mod(tmp_Attr.z, 4.0) * 2.0 + floor(tmp_Attr.y / 128.0)) / 7.0;
    5454    float F = mod(floor(tmp_Attr.y / 8.0), 16.0) / 15.0;
    5555    float G = (mod(tmp_Attr.y, 8.0) * 2.0 + floor(tmp_Attr.x / 128.0)) / 15.0;
Note: See TracChangeset for help on using the changeset viewer.