diff --git a/neercs/video/text.lolfx b/neercs/video/text.lolfx index 495bcc9..34d5f41 100644 --- a/neercs/video/text.lolfx +++ b/neercs/video/text.lolfx @@ -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;