cubemap flashlight fixes

This commit is contained in:
Marco Cawthorne 2019-03-23 03:48:38 +01:00
parent 30cebf3ef2
commit 17a8d0cb9a
12 changed files with 9 additions and 2 deletions

View file

@ -780,7 +780,14 @@ void CSQC_WorldLoaded(void)
precache_pic("{scorch1", TRUE);
precache_pic("{scorch2", TRUE);
precache_pic("{scorch3", TRUE);
/* Primarily for the flashlight */
if (serverkeyfloat("*bspversion") == 46) {
localcmd("r_shadow_realtime_dlight 1\n");
} else {
localcmd("r_shadow_realtime_dlight 0\n");
}
string strTokenized;
getentitytoken(0);
while (1) {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -48,7 +48,7 @@ varying mat3 invsurface;
#ifdef BUMP
vec3 normal_f = normalize(texture2D(s_normalmap, tex_c).rgb - 0.5);
#else
vec3 normal_f = vec4(0, 0, 1);
vec3 normal_f = vec3(0, 0, 1);
#endif
vec3 cube_c;
vec4 out_f = vec4( 1.0, 1.0, 1.0, 1.0 );

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.