xash3d-fwgs/ref_vk/vk_lightmap.h

20 lines
455 B
C
Raw Normal View History

#pragma once
#include "const.h"
#include "com_model.h"
2021-10-26 18:56:16 +02:00
#include "protocol.h"
#define BLOCK_SIZE_MAX 1024
#define BLOCK_SIZE BLOCK_SIZE_MAX
2021-10-26 18:56:16 +02:00
typedef struct {
int lightstylevalue[MAX_LIGHTSTYLES]; // value 0 - 65536
} xvk_lightmap_state_t;
extern xvk_lightmap_state_t g_lightmap;
void VK_ClearLightmap( void );
void VK_CreateSurfaceLightmap( msurface_t *surf, const model_t *loadmodel );
void VK_UploadLightmap( void );
void VK_RunLightStyles( void );