From 197bb250dd0de4d80538d3dfac95fc9ff9c68eae Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 12 Mar 2013 23:14:57 +0000 Subject: [PATCH] ------------------------------------------------------------------------ r4238 | acceptthis | 2013-03-06 18:19:50 +0000 (Wed, 06 Mar 2013) | 1 line Add fullbright instead of mixing fullbright. This at least shows something when fullbrights are used, instead of potential blackness if the fullbright image universally contains 1 in the alpha channel. ------------------------------------------------------------------------ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4234 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/skin.c | 3 +++ engine/gl/gl_shader.c | 2 ++ engine/gl/r_bishaders.h | 18 +++++++++--------- engine/shaders/glsl/defaultskin.glsl | 18 +++++++++--------- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/engine/client/skin.c b/engine/client/skin.c index 624b205d8..bff4faffb 100644 --- a/engine/client/skin.c +++ b/engine/client/skin.c @@ -309,6 +309,9 @@ qbyte *Skin_Cache8 (skin_t *skin) Q_snprintfz (name, sizeof(name), "%s_pants", skin->name); TEXASSIGN(skin->textures.loweroverlay, R_LoadHiResTexture(name, skinpath, 0)); + if (!TEXVALID(skin->textures.upperoverlay) && !TEXVALID(skin->textures.loweroverlay)) + Con_DPrintf("skin \"%s\" has no colourmapping info\n", skin->name); + Q_snprintfz (name, sizeof(name), "%s_luma", skin->name); TEXASSIGN(skin->textures.fullbright, R_LoadHiResTexture(skin->name, skinpath, IF_NOALPHA)); Q_snprintfz (name, sizeof(name), "%s_gloss", skin->name); diff --git a/engine/gl/gl_shader.c b/engine/gl/gl_shader.c index 7773e42a0..d979362f8 100644 --- a/engine/gl/gl_shader.c +++ b/engine/gl/gl_shader.c @@ -1057,6 +1057,8 @@ static qboolean Shader_LoadPermutations(char *name, program_t *prog, char *scrip if (p & (1u<