mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-24 20:51:35 +00:00
[vulkan] Set shadow map size limit to 1024
Even that's getting pretty big, but with the quanta at 128, that's a maximum of 8 different image sizes (which is nice for my planned "staging image" idea).
This commit is contained in:
parent
9ba7207e20
commit
a9ff79a76a
1 changed files with 1 additions and 0 deletions
|
@ -1616,6 +1616,7 @@ allocate_map (mapctx_t *mctx, int type, int (*getsize) (const light_t *light))
|
|||
continue;
|
||||
}
|
||||
int light_size = getsize (&mctx->lights[li]);
|
||||
light_size = min (light_size, 1024);
|
||||
light_size = ((light_size + shadow_quanta - 1) / shadow_quanta)
|
||||
* shadow_quanta;
|
||||
if (size != light_size || numLayers + layers > mctx->maxLayers) {
|
||||
|
|
Loading…
Reference in a new issue