OpenGL2: Add support for parallax occlusion mapping.
This commit is contained in:
parent
b1821e303d
commit
d9e2184c1a
3 changed files with 19 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue