From 00cbdfc9840646c56f9fd0a3dc1889ea3a281252 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Wed, 10 Jan 2024 00:28:38 +0100 Subject: [PATCH] Adjust dot matrix and ghosting effects --- platforms/desktop-shared/config.cpp | 4 ++-- platforms/desktop-shared/config.h | 4 ++-- platforms/desktop-shared/renderer.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/platforms/desktop-shared/config.cpp b/platforms/desktop-shared/config.cpp index 7f33af5a..ebdb7446 100644 --- a/platforms/desktop-shared/config.cpp +++ b/platforms/desktop-shared/config.cpp @@ -117,9 +117,9 @@ void config_read(void) config_video.fps = read_bool("Video", "FPS", false); config_video.bilinear = read_bool("Video", "Bilinear", false); config_video.mix_frames = read_bool("Video", "MixFrames", true); - config_video.mix_frames_intensity = read_float("Video", "MixFramesIntensity", 0.50f); + config_video.mix_frames_intensity = read_float("Video", "MixFramesIntensity", 0.75f); config_video.matrix = read_bool("Video", "Matrix", true); - config_video.matrix_intensity = read_float("Video", "MatrixIntensity", 0.30f); + config_video.matrix_intensity = read_float("Video", "MatrixIntensity", 0.20f); config_video.palette = read_int("Video", "Palette", 0); for (int i = 0; i < config_max_custom_palettes; i++) { diff --git a/platforms/desktop-shared/config.h b/platforms/desktop-shared/config.h index 4ad98aaa..f03a00fb 100644 --- a/platforms/desktop-shared/config.h +++ b/platforms/desktop-shared/config.h @@ -69,9 +69,9 @@ struct config_Video bool fps = false; bool bilinear = false; bool mix_frames = true; - float mix_frames_intensity = 0.50f; + float mix_frames_intensity = 0.75f; bool matrix = true; - float matrix_intensity = 0.30f; + float matrix_intensity = 0.20f; int palette = 0; GB_Color color[config_max_custom_palettes][4] = { {{0xC4, 0xF0, 0xC2}, {0x5A, 0xB9, 0xA8}, {0x1E, 0x60, 0x6E}, {0x2D, 0x1B, 0x00}}, diff --git a/platforms/desktop-shared/renderer.cpp b/platforms/desktop-shared/renderer.cpp index 07b6955b..d9dffc18 100644 --- a/platforms/desktop-shared/renderer.cpp +++ b/platforms/desktop-shared/renderer.cpp @@ -218,7 +218,7 @@ static void render_emu_mix(void) { glBindFramebuffer(GL_FRAMEBUFFER, frame_buffer_object); - float alpha = 0.15f + (0.20f * (1.0f - config_video.mix_frames_intensity)); + float alpha = 0.15f + (0.50f * (1.0f - config_video.mix_frames_intensity)); if (first_frame) {