git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 6b30de5fb1c9c7c177ea544db9fe82e7d40a2171
parent 7de6194e28771d1231d4ca1618f82c5977ab1514
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 12 Dec 2020 16:02:46 +0200

Fixed dark colors on Metal without frame blending

Diffstat:
MShaders/MasterShader.metal2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Shaders/MasterShader.metal b/Shaders/MasterShader.metal @@ -66,7 +66,7 @@ fragment float4 fragment_shader(rasterizer_data in [[stage_in]], switch (*frame_blending_mode) { default: case DISABLED: - return scale(image, in.texcoords, input_resolution, *output_resolution); + return pow(scale(image, in.texcoords, input_resolution, *output_resolution), 1 / GAMMA); case SIMPLE: ratio = 0.5; break;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.