Changeset 2138


Ignore:
Timestamp:
Dec 10, 2012, 2:59:07 PM (10 years ago)
Author:
sam
Message:

neercs: remove deprecated GLSL constructs in text shader.

File:
1 edited

Legend:

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

    r2091 r2138  
    66
    77#if HAVE_UINT
    8 attribute uint in_Char, in_Attr;
     8in uint in_Char, in_Attr;
    99#else
    10 attribute vec4 in_Char, in_Attr;
     10in vec4 in_Char, in_Attr;
    1111#endif
    1212
    13 varying vec4 pass_Foreground;
    14 varying vec4 pass_Background;
    15 varying vec2 pass_UV;
     13out vec4 pass_Foreground;
     14out vec4 pass_Background;
     15out vec2 pass_UV;
    1616
    1717uniform vec2 u_DataSize;
     
    6868#version 130
    6969
    70 varying vec4 pass_Foreground;
    71 varying vec4 pass_Background;
    72 varying vec2 pass_UV;
     70in vec4 pass_Foreground;
     71in vec4 pass_Background;
     72in vec2 pass_UV;
    7373
    7474uniform sampler2D u_Texture;
     75
     76out vec4 out_Color;
    7577
    7678void main(void)
     
    7880    vec2 c = gl_PointCoord * (1.0 / 32.0) + pass_UV;
    7981    float t = texture2D(u_Texture, c).x;
    80     gl_FragColor = mix(pass_Background, pass_Foreground, t);
     82    out_Color = mix(pass_Background, pass_Foreground, t);
    8183}
Note: See TracChangeset for help on using the changeset viewer.