better support non-GLSL130 in offsetmapping
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 Mar 2011 14:21:35 +0000 (14:21 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 13 Mar 2011 14:21:35 +0000 (14:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10918 d7cf8633-e32d-0410-b094-e92efae38249

shader_glsl.h

index 20be4e6..7adabc4 100644 (file)
 "# define texture2D texture\n"
 "# define texture3D texture\n"
 "# define textureCube texture\n"
+"#else\n"
+"# define textureGrad(a,b,c,d) texture2D(a,b)\n"
+"# define dFdx(a) 0\n"
+"# define dFdy(a) 0\n"
 "#endif\n"
 "\n"
 "#ifdef VERTEX_SHADER\n"