From: divverent Date: Wed, 27 Apr 2011 09:19:10 +0000 (+0000) Subject: in glsl130, add "precision mediump float" X-Git-Tag: xonotic-v0.6.0~163^2~468 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3bbaf6508a069bd985a3c7c821d9956f6f2e6ae7;p=xonotic%2Fdarkplaces.git in glsl130, add "precision mediump float" git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11078 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/shader_glsl.h b/shader_glsl.h index 44d84da3..f5fc5510 100644 --- a/shader_glsl.h +++ b/shader_glsl.h @@ -2,14 +2,17 @@ "// written by Forest 'LordHavoc' Hale\n" "// shadowmapping enhancements by Lee 'eihrul' Salzman\n" "\n" -"// GL ES shaders use precision modifiers, standard GL does not\n" +"// GL ES and GLSL130 shaders use precision modifiers, standard GL does not\n" "#ifndef GL_ES\n" +"#ifndef GLSL130\n" "#define lowp\n" "#define mediump\n" "#define highp\n" "#endif\n" +"#endif\n" "\n" "#ifdef GLSL130\n" +"precision mediump float;\n" "# ifdef VERTEX_SHADER\n" "# define dp_varying out\n" "# define dp_attribute in\n"