OpenGL2: Add support for parallax occlusion mapping.

This commit is contained in:
SmileTheory 2014-11-10 22:11:36 -08:00
parent b1821e303d
commit d9e2184c1a
3 changed files with 19 additions and 2 deletions

View file

@ -1079,7 +1079,11 @@ void GLSL_InitGPUShaders(void)
#endif
if ((i & LIGHTDEF_USE_PARALLAXMAP) && !(i & LIGHTDEF_ENTITY) && r_parallaxMapping->integer)
{
Q_strcat(extradefines, 1024, "#define USE_PARALLAXMAP\n");
if (r_parallaxMapping->integer > 1)
Q_strcat(extradefines, 1024, "#define USE_RELIEFMAP\n");
}
}
if (r_specularMapping->integer)