diff --git a/android/app/src/main/cpp/code/renderergles3/tr_glsl.c b/android/app/src/main/cpp/code/renderergles3/tr_glsl.c index 8a368268..3e119902 100644 --- a/android/app/src/main/cpp/code/renderergles3/tr_glsl.c +++ b/android/app/src/main/cpp/code/renderergles3/tr_glsl.c @@ -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"); diff --git a/android/app/src/main/pakQ3Q/glsl/lightall_fp.glsl b/android/app/src/main/pakQ3Q/glsl/lightall_fp.glsl index 554797ae..5aff1c38 100644 --- a/android/app/src/main/pakQ3Q/glsl/lightall_fp.glsl +++ b/android/app/src/main/pakQ3Q/glsl/lightall_fp.glsl @@ -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; }