add trees to scenery, disable mipmapping by default, increase index buffer size again

This commit is contained in:
veclavtalica
2025-02-26 16:17:44 +03:00
parent 8c0f43ec34
commit 6812c7c13d
4 changed files with 30 additions and 5 deletions

View File

@ -24,7 +24,7 @@ extern float camera_2d_zoom;
extern double depth_range_low, depth_range_high;
#define QUAD_ELEMENT_BUFFER_LENGTH ((65536 * 4) / 6)
#define QUAD_ELEMENT_BUFFER_LENGTH ((65536 * 8) / 6)
#define CIRCLE_VERTICES_MAX 2048
/* TODO: limit to only most necessary */

View File

@ -242,7 +242,7 @@ static void add_new_atlas(TextureCache *cache) {
/* TODO: create a PBO surface if possible, reducing duplication */
SDL_Surface *new_atlas = create_surface((int)ctx.texture_atlas_size, (int)ctx.texture_atlas_size);
arrput(cache->atlas_surfaces, new_atlas);
arrput(cache->atlas_textures, create_gpu_texture(TEXTURE_FILTER_NEAREAST, true, 4, (int)ctx.texture_atlas_size, (int)ctx.texture_atlas_size));
arrput(cache->atlas_textures, create_gpu_texture(TEXTURE_FILTER_NEAREAST, false, 4, (int)ctx.texture_atlas_size, (int)ctx.texture_atlas_size));
}