瀏覽代碼

neercs: more pre-shader4 compatibility tweaks.

master
Sam Hocevar 12 年之前
父節點
當前提交
9bf9e7fe44
共有 1 個檔案被更改,包括 11 行新增2 行删除
  1. +11
    -2
      neercs/video/text.lolfx

+ 11
- 2
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;


Loading…
取消
儲存