From 622e634e1cfd55dd875979a1f109a804d3dbe7ee Mon Sep 17 00:00:00 2001 From: quou Date: Thu, 9 Jan 2025 22:53:40 +1100 Subject: mipmap the environment probe --- video.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'video.cpp') diff --git a/video.cpp b/video.cpp index a0bbc2c..29afc6e 100644 --- a/video.cpp +++ b/video.cpp @@ -6,9 +6,9 @@ #define max_buffers 1024 #define max_vertex_formats 64 #define max_rpos 64 -#define max_fbos 64 +#define max_fbos 1024 #define max_pipelines 64 -#define max_descriptor_sets 64 +#define max_descriptor_sets 1024 #define max_shaders 32 #define max_samplers 16 @@ -4154,6 +4154,7 @@ void Sampler_Vk::init(Device_Vk* dev, const Sampler_State& s) { si.addressModeV = get_mode(s.address_v); si.addressModeW = get_mode(s.address_w); si.borderColor = VK_BORDER_COLOR_FLOAT_CUSTOM_EXT; + si.maxLod = VK_LOD_CLAMP_NONE; si.pNext = &bi; bi.sType = VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT; bi.customBorderColor = col; -- cgit v1.2.3-54-g00ecf