xash3d-fwgs/ref_vk/vk_const.h
Ivan Avdeev b67668430b rtx: fix missing flashlight in c1a4i
Just increase point lights limit per light cell.

Also:
- update infotool to show point lights info
- move light cluster finalization to vk_scene to make sure infotool has
  the recentmost data
2021-12-26 23:56:21 -08:00

24 lines
538 B
C

#pragma once
#define MAX_SCENE_STACK 2
#define MAX_SCENE_ENTITIES 2048
#define MAX_TEXTURES 4096
// TODO count these properly
#define MAX_BUFFER_VERTICES (1 * 1024 * 1024)
#define MAX_BUFFER_INDICES (MAX_BUFFER_VERTICES * 3)
// indexed by uint8_t
#define MAX_SURFACE_LIGHTS 256
// indexed by uint8_t
#define MAX_POINT_LIGHTS 256
// indexed by uint8_t
#define MAX_VISIBLE_POINT_LIGHTS 63
// indexed by uint8_t
#define MAX_VISIBLE_SURFACE_LIGHTS 255
#define MAX_LIGHT_CLUSTERS 262144 //131072 //32768
#define LIGHT_GRID_CELL_SIZE 128