Skip to content

Commit

Permalink
Adjust dot matrix and ghosting effects
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 9, 2024
1 parent 40ee55e commit 00cbdfc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions platforms/desktop-shared/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down
4 changes: 2 additions & 2 deletions platforms/desktop-shared/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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}},
Expand Down
2 changes: 1 addition & 1 deletion platforms/desktop-shared/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 00cbdfc

Please sign in to comment.