Browse Source

GLSL precision qualifiers (lowp, mediump, highp) can now be used for variables in shader code on desktops without causing a compile error, although they do nothing.

Alex Szpakowski 11 years ago
parent
commit
417173b43a
2 changed files with 6 additions and 0 deletions
  1. 3 0
      src/scripts/graphics.lua
  2. 3 0
      src/scripts/graphics.lua.h

+ 3 - 0
src/scripts/graphics.lua

@@ -1292,6 +1292,9 @@ do
 	local GLSL_VERSION = "#version 120"
 	
 	local GLSL_SYNTAX = [[
+#define lowp
+#define mediump
+#define highp
 #define number float
 #define Image sampler2D
 #define extern uniform

+ 3 - 0
src/scripts/graphics.lua.h

@@ -6269,6 +6269,9 @@ const unsigned char graphics_lua[] =
 	0x09, 0x0a,
 	0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x47, 0x4c, 0x53, 0x4c, 0x5f, 0x53, 0x59, 0x4e, 0x54, 0x41, 0x58, 
 	0x20, 0x3d, 0x20, 0x5b, 0x5b, 0x0a,
+	0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x6c, 0x6f, 0x77, 0x70, 0x0a,
+	0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x6d, 0x65, 0x64, 0x69, 0x75, 0x6d, 0x70, 0x0a,
+	0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x68, 0x69, 0x67, 0x68, 0x70, 0x0a,
 	0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x20, 0x66, 0x6c, 0x6f, 
 	0x61, 0x74, 0x0a,
 	0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x20, 0x73, 0x61, 0x6d, 0x70,