mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 14:59:57 +01:00
19b8025fc6
1. add a way to enable only certain lights 2. add commented out code to highligh affected light clusters, culling modes, etc. 3. add affected light clusters counter when collecting lights
21 lines
984 B
C
21 lines
984 B
C
#include "vk_cvar.h"
|
|
#include "vk_common.h"
|
|
|
|
#define NONEXTERN_CVAR(cvar) cvar_t *cvar;
|
|
DECLARE_CVAR(NONEXTERN_CVAR)
|
|
#undef NONEXTERN_CVAR
|
|
|
|
static cvar_t *r_drawentities;
|
|
|
|
void VK_LoadCvars( void )
|
|
{
|
|
r_lighting_modulate = gEngine.Cvar_Get( "r_lighting_modulate", "0.6", FCVAR_ARCHIVE, "lightstyles modulate scale" );
|
|
cl_lightstyle_lerping = gEngine.pfnGetCvarPointer( "cl_lightstyle_lerping", 0 );
|
|
r_drawentities = gEngine.pfnGetCvarPointer( "r_drawentities", 0 );
|
|
vk_rtx_bounces = gEngine.Cvar_Get( "vk_rtx_bounces", "2", FCVAR_ARCHIVE, "RTX path tracing ray bounces" );
|
|
vk_rtx_prev_frame_blend_factor = gEngine.Cvar_Get("vk_rtx_prev_frame_blend_factor", "0.1", FCVAR_ARCHIVE, "RTX path tracer ghetto temporal denoiser strength");
|
|
|
|
vk_rtx_light_begin = gEngine.Cvar_Get( "vk_rtx_light_begin", "0", 0, "DEBUG: disable lights with index lower than this");
|
|
vk_rtx_light_end = gEngine.Cvar_Get( "vk_rtx_light_end", "0", 0, "DEBUG: disable lights with index higher than this ");
|
|
}
|