cubemap flashlight fixes
This commit is contained in:
parent
30cebf3ef2
commit
17a8d0cb9a
12 changed files with 9 additions and 2 deletions
|
@ -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.
|
@ -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 );
|
||||
|
|
BIN
valve/data.pk3dir/textures/flashlight_bk.tga
Normal file
BIN
valve/data.pk3dir/textures/flashlight_bk.tga
Normal file
Binary file not shown.
BIN
valve/data.pk3dir/textures/flashlight_dn.tga
Normal file
BIN
valve/data.pk3dir/textures/flashlight_dn.tga
Normal file
Binary file not shown.
BIN
valve/data.pk3dir/textures/flashlight_ft.tga
Normal file
BIN
valve/data.pk3dir/textures/flashlight_ft.tga
Normal file
Binary file not shown.
BIN
valve/data.pk3dir/textures/flashlight_lf.tga
Normal file
BIN
valve/data.pk3dir/textures/flashlight_lf.tga
Normal file
Binary file not shown.
BIN
valve/data.pk3dir/textures/flashlight_rt.tga
Normal file
BIN
valve/data.pk3dir/textures/flashlight_rt.tga
Normal file
Binary file not shown.
BIN
valve/data.pk3dir/textures/flashlight_up.tga
Normal file
BIN
valve/data.pk3dir/textures/flashlight_up.tga
Normal file
Binary file not shown.
Loading…
Reference in a new issue