Skip to content

Commit

Permalink
Fixed linear space rendering for hud_movie
Browse files Browse the repository at this point in the history
  • Loading branch information
kosumosu committed Dec 29, 2023
1 parent 20bcaf3 commit afbb9b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Binary file added res/gamedata/shaders/r3/yuv2rgb.ps
Binary file not shown.
Binary file modified res/gamedata/shaders/r5/yuv2rgb.ps
Binary file not shown.
4 changes: 4 additions & 0 deletions src/Layers/xrRenderPC_R4/r4_shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit afbb9b1

Please sign in to comment.