From afbb9b162825294ee497e1d1f126c16e53fb24b5 Mon Sep 17 00:00:00 2001 From: Roman Zavalov Date: Fri, 29 Dec 2023 22:58:44 +0300 Subject: [PATCH] Fixed linear space rendering for hud_movie --- res/gamedata/shaders/r3/yuv2rgb.ps | Bin 0 -> 1143 bytes res/gamedata/shaders/r5/yuv2rgb.ps | Bin 741 -> 1143 bytes src/Layers/xrRenderPC_R4/r4_shaders.cpp | 4 ++++ 3 files changed, 4 insertions(+) create mode 100644 res/gamedata/shaders/r3/yuv2rgb.ps diff --git a/res/gamedata/shaders/r3/yuv2rgb.ps b/res/gamedata/shaders/r3/yuv2rgb.ps new file mode 100644 index 0000000000000000000000000000000000000000..cb91ddeb3398ca94f0efd9695f09c3caa0fa9418 GIT binary patch literal 1143 zcmaJ=U2mdL5PiPb4}UDt zX3jZtX6~I%nlH1%OAI&5^=h@w^}jcg)JYTg{V<)}&iMT4_HM#wlj(Redzju!Nw$vm zu-m>q^ZlAn7ANi(k#sorIRWZM;8hbD=ntPEzU4{??u?Kq-st9BJ`NH>75vxhd<>VszE95P7Kyh2ncj@t+d5p<*%(lxd>DZsS@5wRS>@ z;aKvAE9&l0>%$5_W%F@ literal 0 HcmV?d00001 diff --git a/res/gamedata/shaders/r5/yuv2rgb.ps b/res/gamedata/shaders/r5/yuv2rgb.ps index 6ddcca40a4054d1f42b89fe2546b6ed3c81057fa..cb91ddeb3398ca94f0efd9695f09c3caa0fa9418 100644 GIT binary patch delta 422 zcmaFL`kiBfXuWb~nu3p~pQ~d~d~krHvuk{itDlQ&kf)zJS6WVfVu?a=QF>B*Nq&4z zW?pJykp@JtEHOuut6G6e0SGeFG!%e*1seqeJp&U16Vo&WO|S$=5+tE-t6*rPXK9pX z4Hiz#DNcpU*Mk(;Diq|GYiNL&+8{$rP17{>4Z*aIk)BDKCPZUVYDsBP9>_>*u39dL z^Ng{&&lsc#=s+$`s2;GZjWy8x0#sz9SD~qcZU#_XuM)d(l_tZs8mkNnnaL}d6xblfPd?5h2LO1Bfp`D_ delta 47 zcmey)@sxFf=;lDi$xQNGoJFZ6rA2uPX*v0cB_ynI CCJwLw diff --git a/src/Layers/xrRenderPC_R4/r4_shaders.cpp b/src/Layers/xrRenderPC_R4/r4_shaders.cpp index b5681053453..50498323af0 100644 --- a/src/Layers/xrRenderPC_R4/r4_shaders.cpp +++ b/src/Layers/xrRenderPC_R4/r4_shaders.cpp @@ -418,6 +418,10 @@ HRESULT CRender::shader_compile(pcstr name, IReader* fs, pcstr pFunctionName, // Minmax SM appendShaderOption(o.minmax_sm, "USE_MINMAX_SM", "1"); + // Linear space rendering if 1, or gamma space if 0 + appendShaderOption(o.linear_space_rendering, "LINEAR_SPACE_RENDERING", "1"); + + // Ascii's Screen Space Shaders - SSS preprocessor stuff if (ps_ssfx_rain_1.w > 0) {