feat: add anisotropic filtering control

This commit is contained in:
2026-04-26 17:29:58 +08:00
parent e34a20599d
commit 59ab47d317
5 changed files with 103 additions and 36 deletions

View File

@@ -8,13 +8,18 @@ class App;
class Player;
class DevPanel {
struct ConfigView {
float fov;
bool fullscreen;
bool v_sync;
float mouse_sensitivity;
int width;
int height;
int rendering_distance;
float fov = 70.0f;
bool fullscreen = false;
bool v_sync = true;
float mouse_sensitivity = 0.15f;
int width = 800;
int height = 600;
int rendering_distance = 24;
int aniso = 1;
int max_aniso = 1;
bool is_enable_aniso = false;
bool is_support_aniso = true;
bool is_reload = true;
};
struct PlayerProfile {
int game_mode = 0;
@@ -42,8 +47,9 @@ private:
void show_world_tab_item();
void show_player_tab_item();
void update_config_view();
void update_player_profile();
};

View File

@@ -12,6 +12,8 @@ private:
GLuint m_block_status_array;
GLuint m_texture_array;
GLuint m_ui_array;
GLfloat m_max_aniso = 0.0f;
int m_aniso = 1;
void load_block_status(unsigned status_id);
void load_block_texture(unsigned block_id);
void load_ui_texture(unsigned id);
@@ -29,7 +31,7 @@ public:
void hot_reload();
void need_reload();
void update();
int max_aniso() const;
};