OpenGL2: r_cubemapping 2 for box cubemap parallax.
This commit is contained in:
parent
b0d2b141e7
commit
e5da13f146
2 changed files with 40 additions and 0 deletions
|
@ -1129,9 +1129,15 @@ void GLSL_InitGPUShaders(void)
|
|||
Q_strcat(extradefines, 1024, "#define USE_SPECULARMAP\n");
|
||||
|
||||
if (r_cubeMapping->integer)
|
||||
{
|
||||
Q_strcat(extradefines, 1024, "#define USE_CUBEMAP\n");
|
||||
if (r_cubeMapping->integer == 2)
|
||||
Q_strcat(extradefines, 1024, "#define USE_BOX_CUBEMAP_PARALLAX\n");
|
||||
}
|
||||
else if (r_deluxeSpecular->value > 0.000001f)
|
||||
{
|
||||
Q_strcat(extradefines, 1024, va("#define r_deluxeSpecular %f\n", r_deluxeSpecular->value));
|
||||
}
|
||||
|
||||
switch (r_glossType->integer)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue