1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Use angrylion's bayer matrix

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
This commit is contained in:
gizmo98 2020-10-30 06:17:16 +01:00 committed by Sergey Lipskiy
parent 909cf172b9
commit e5d59a6394

View File

@ -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"