Black player model in player menu fixed

This commit is contained in:
Lubos 2022-04-17 10:04:24 +02:00 committed by Simon
parent 6382b04afb
commit 98bd90cae5
2 changed files with 12 additions and 0 deletions

View file

@ -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");

View file

@ -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;
}