Skip to content

Commit

Permalink
Fix noise texture not being shown in FFP postprocess effect (#1313, c…
Browse files Browse the repository at this point in the history
…loses #1330)
  • Loading branch information
Xottab-DUTY committed Jun 28, 2023
1 parent 695f291 commit cb3d8ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Layers/xrRenderPC_R1/FStaticRender_RenderTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,13 @@ void CRenderTarget::phase_combine_fpp(u32 p_color, u32 p_gray, u32 p_alpha,
if (param_noise > 0.001f)
{
auto* pv2 = static_cast<FVF::TL*>(RImplementation.Vertex.Lock(4, g_postprocess[0].stride(), Offset));
pv2->set(0, float(_h), EPS_S, 1.f, p_gray, n0.x, n1.y);
pv2->set(0, float(_h), EPS_S, 1.f, p_color, n0.x, n1.y);
pv2++;
pv2->set(0, 0, EPS_S, 1.f, p_gray, n0.x, n0.y);
pv2->set(0, 0, EPS_S, 1.f, p_color, n0.x, n0.y);
pv2++;
pv2->set(float(_w), float(_h), EPS_S, 1.f, p_gray, n1.x, n1.y);
pv2->set(float(_w), float(_h), EPS_S, 1.f, p_color, n1.x, n1.y);
pv2++;
pv2->set(float(_w), 0, EPS_S, 1.f, p_gray, n1.x, n0.y);
pv2->set(float(_w), 0, EPS_S, 1.f, p_color, n1.x, n0.y);
pv2++;
RImplementation.Vertex.Unlock(4, g_postprocess[0].stride());

Expand Down

0 comments on commit cb3d8ac

Please sign in to comment.