mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-03-06 17:31:57 +00:00
Black player model in player menu fixed
This commit is contained in:
parent
6382b04afb
commit
98bd90cae5
2 changed files with 12 additions and 0 deletions
|
@ -1106,6 +1106,13 @@ void GLSL_InitGPUShaders(void)
|
|||
if (glRefConfig.swizzleNormalmap)
|
||||
Q_strcat(extradefines, 1024, "#define SWIZZLE_NORMALMAP\n");
|
||||
|
||||
|
||||
// HACK: use in main menu simple light model (to prevent issue with missing models textures)
|
||||
if (Cvar_Get("r_uiFullScreen", "1", 0)->integer)
|
||||
{
|
||||
Q_strcat(extradefines, 1024, "#define USE_MENU_LIGHT\n");
|
||||
}
|
||||
|
||||
if (lightType)
|
||||
{
|
||||
Q_strcat(extradefines, 1024, "#define USE_LIGHT\n");
|
||||
|
|
|
@ -515,5 +515,10 @@ void main()
|
|||
|
||||
#endif
|
||||
|
||||
// HACK: use in main menu simple light model (to prevent issue with missing models textures)
|
||||
#if defined(USE_MENU_LIGHT)
|
||||
gl_FragColor.rgb = diffuse.rgb * lightColor;
|
||||
#endif
|
||||
|
||||
gl_FragColor.a = alpha;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue