From e5d59a6394735aaa87a1f133d900aba1173e0fd8 Mon Sep 17 00:00:00 2001 From: gizmo98 Date: Fri, 30 Oct 2020 06:17:16 +0100 Subject: [PATCH] Use angrylion's bayer matrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/gonetz/GLideN64/issues/2359 We use a precalculated matrix for float color values. It’s angrylion’s matrix divided bei 16.0f. https://github.com/project64/angrylion-rdp/blob/093754a4a53437925824317a b22ce6a56748fe14/n64video.cpp#L2509 --- .../OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp b/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp index ca94018d..95f0c981 100644 --- a/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp +++ b/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp @@ -829,10 +829,10 @@ public: } m_part += - " lowp mat4 bayer = mat4( 0.0, 0.75, 0.1875, 0.9375, \n" - " 0.5, 0.25, 0.6875, 0.4375, \n" - " 0.125, 0.875, 0.0625, 0.8125, \n" - " 0.625, 0.375, 0.5625, 0.3125); \n" + " lowp mat4 bayer = mat4( 0.0, 0.25, 0.0625, 0.3125, \n" + " 0.25, 0.0, 0.3125, 0.0625, \n" + " 0.1875, 0.4375, 0.125, 0.375, \n" + " 0.4375, 0.1875, 0.375, 0.125); \n" " lowp mat4 mSquare = mat4( 0.0, 0.6875, 0.75, 0.4375, \n" " 0.875, 0.3125, 0.125, 0.5625, \n" " 0.1875, 0.5, 0.9375, 0.25, \n"