Browse Source

neercs: more pre-shader4 compatibility tweaks.

master
Sam Hocevar 12 years ago
parent
commit
9bf9e7fe44
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      neercs/video/text.lolfx

+ 11
- 2
neercs/video/text.lolfx View File

@@ -7,8 +7,9 @@
#if HAVE_SHADER_4
in uint in_Char, in_Attr;
#else
in vec4 in_Char, in_Attr;
in float in_VertexID;
attribute vec4 in_Char, in_Attr;
attribute float in_VertexID;
# define out varying
#endif

out vec4 pass_Foreground;
@@ -78,6 +79,14 @@ void main()

#version 130

#define HAVE_SHADER_4 1

#if !HAVE_SHADER_4
# define out_Color gl_FragColor
# define in varying
# define out
#endif

in vec4 pass_Foreground;
in vec4 pass_Background;
in vec2 pass_UV;


Loading…
Cancel
Save