OpenGL2: Add support for parallax occlusion mapping.

This commit is contained in:
SmileTheory committed 2014-11-10 22:11:36 -08:00
1 parent b1821e303d
commit d9e2184c1a
3 files changed
+19 -2

No files matched your search

+4
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)