Changeset 2138
- Timestamp:
- Dec 10, 2012, 2:59:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/neercs/video/text.lolfx
r2091 r2138 6 6 7 7 #if HAVE_UINT 8 attributeuint in_Char, in_Attr;8 in uint in_Char, in_Attr; 9 9 #else 10 attributevec4 in_Char, in_Attr;10 in vec4 in_Char, in_Attr; 11 11 #endif 12 12 13 varyingvec4 pass_Foreground;14 varyingvec4 pass_Background;15 varyingvec2 pass_UV;13 out vec4 pass_Foreground; 14 out vec4 pass_Background; 15 out vec2 pass_UV; 16 16 17 17 uniform vec2 u_DataSize; … … 68 68 #version 130 69 69 70 varyingvec4 pass_Foreground;71 varyingvec4 pass_Background;72 varyingvec2 pass_UV;70 in vec4 pass_Foreground; 71 in vec4 pass_Background; 72 in vec2 pass_UV; 73 73 74 74 uniform sampler2D u_Texture; 75 76 out vec4 out_Color; 75 77 76 78 void main(void) … … 78 80 vec2 c = gl_PointCoord * (1.0 / 32.0) + pass_UV; 79 81 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); 81 83 }
Note: See TracChangeset
for help on using the changeset viewer.